Have you tried Renaming the Vendor/Module name with different cases For instance: Vendor_Module to VENDOR_Module?
After renaming the module name I tried to setup:upgrade, but got the below issue,
Integrity constraint violation: 1062 Duplicate entry 'VENDOR_Module' for key 'PRIMARY', query was: INSERT INTO
schema_version) VALUES (?, ?)
Yes, we can manually remove the module from setup_module table and rerun the setup. However, there are many using this module. Is there any dynamic solution to this?
P.S: This pertains only to the custom module I have created and not the core modules