I get this error after installing a module in modules/contrib and then uninstalling and moving it to a different directory. I accidentally installed the module in the wrong place.
This is in a local BLT/Drupal-VM environment. I've tried drush cr
and rebuilding the drupal core directory as well as nuking the vendor folder that composer installs.
Seems that the paths to the installed modules gets stored in PHP memory some how and after the move php is not picking up the changes.
Restarting apache doesn't do anything either.