I found a simple solution although, as is often the case with the new version of grocerycrud, it is not documented and you need to reverse engineer the sources.
Just define a new custom model, which is actually the default one.
But in this case, you can pass the correct DB connection to the constructor:
$crud->setModel(new \App\Models\GroceryCrudModel(db_connect(‘db_to_connect’)));