magento2.3 – PHP Fatal error: Uncaught Error: Cannot instantiate interface Magento 2.3

When running php bin/magento setup:upgrade i see this error.

{"messages":{"error":({"code":500,"message":"Server internal error. See details in report api/499296787794"})}}

Searching on my error_log_php i see this

    PHP Fatal error:  Uncaught Error: Cannot instantiate interface MagentoDownloadableApiDomainManagerInterface in /home/user/MySite/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:50
Stack trace:
#0 /home/user/MySite/vendor/magento/framework/ObjectManager/ObjectManager.php(70): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create('Magento\Downloa...')
#1 /home/user/MySite/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(160): MagentoFrameworkObjectManagerObjectManager->get('Magento\Downloa...')
#2 /home/user/MySite/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(246): MagentoFrameworkObjectManagerFactoryAbstractFactory->resolveArgument(Array, 'Magento\Downloa...', NULL, 'domainManager', 'Magento\Downloa...')
#3 /home/user/MySite/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): MagentoFrameworkObje in /home/user/MySite/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php on line 50

I’ve seen suggestions for deleting var and generated folder, but it didn’t work.
I’m interested in solving this since I need to install a new module.

What could be the issue, and I could solve this?


EDIT

I’ve also found that it could be a problem related to the leftovers of a badly removed module. If that is the case, how could I check for it? I haven’t installed anything recently, so any issue related to this would be hard to track only with memory.