8 – $container not initialized after installation from sources (code and database)

I’m working on a site installed with Composer. After the local installation broke, I’m trying to reinstall the project from source code and the MySQL database. All the sources are versioned on Git (including the /vendor folder).

After Acquia installation, all the pages return a 500 error. When I run drush ws to debug, I get the following error message.

DrupalCoreDependencyInjectionContainerNotInitializedException: Drupal::$container is not initialized yet. Drupal::setContainer() must be called with a real container. in C:workspacesdevAltaD8webcorelibDrupal.php on line 130
#0 C:workspacesdevAltaD8webcorelibDrupal.php(518): Drupal::getContainer()
#1 C:Program Files (x86)DevDesktoptoolsvendordrushdrushcommandscoredrupalenvironment.inc(141): Drupal::moduleHandler()
#2 C:Program Files (x86)DevDesktoptoolsvendordrushdrushlibDrushBootDrupalBoot.php(242): drush_module_exists(‘dblog’)
#3 C:Program Files (x86)DevDesktoptoolsvendordrushdrushlibDrushBootDrupalBoot.php(73): DrushBootDrupalBoot->drush_enforce_requirement_drupal_dependencies(Array)
#4 C:Program Files (x86)DevDesktoptoolsvendordrushdrushlibDrushBootBaseBoot.php(60): DrushBootDrupalBoot->enforce_requirement(Array)
#5 C:Program Files (x86)DevDesktoptoolsvendordrushdrushincludespreflight.inc(66): DrushBootBaseBoot->bootstrap_and_dispatch()
#6 C:Program Files (x86)DevDesktoptoolsvendordrushdrushdrush.php(12): drush_main()
#7 {main} DrupalCoreDependencyInjectionContainerNotInitializedException: Drupal::$container is not initialized yet. Drupal::setContainer() must be called with a real container. in Drupal::getContainer() (line 130 of C:workspacesdevAltaD8webcorelibDrupal.php).
Drush command terminated abnormally due to an unrecoverable error.

Oddly, drush cr seems to work flawlessly.

How can I troubleshoot this? I don’t know where to start.