Zend certified PHP/Magento developer

Class “ZendMvcControllerAbstractActionController” not found in 2.4.6-p5

Magento 2.4.6-p5

Getting this error on compilation:

There is an error in htdocs/setup/src/Magento/Setup/Controller/AddDatabase.php at line: 11
Class "ZendMvcControllerAbstractActionController" not found#0 htdocs/vendor/composer/ClassLoader.php(444): include()

I removed the generated folder and cleared the cache, did not help. I also downloaded the setup folder from github for Magento 2.4.6-p5, gave me other errors. I also deleted the setup folder and ran composer install, but nothing composer said there is nothing to install or update.

Any ideas what else I can try?