If the drive you are installing onto has bad sectors, the installer may fail to load winsetup.dll into memory. Boot from your installation USB. On the initial setup screen, press Shift + F10 to open the Command Prompt. chkdsk C: /f /r . (Replace with your target drive letter if different).
Locate the latest BIOS firmware update file for your exact computer or motherboard model. how to fix windows could not load required file winsetup.dll
How to Fix "Windows Could Not Load Required File Winsetup.dll" If the drive you are installing onto has