How did I fix «Unable to apply data patch Magento\CatalogUrlRewrite\Setup\Patch\Data\UpdateUrlKeyForProducts» while upgrading Magento to 2.4.0?

Seel also: How do I install Magento 2.4 to Windows?