Deployment of full database dump still causes error
You can run Drush commands remotely from another server using methods such as site aliases.
https://docs.drush.org/en/master/usage/#site-aliases

So you might be able to run registry rebuild https://www.drupal.org/project/registry_rebuild

which sometimes helps with class errors.