In my case, the failure was caused by the Adminer script in the app/code/Webkul/Marketplace/Controller/Index/Adminer.php file.
To fix the issue, I have deleted this file.
The failure point was in the Magento\Setup\Module\Di\Code\Reader\ClassesScanner::getList()
method: