Use the official tools outlined in the Dortania guide to pull the macOS installer directly from Apple's servers, even if you are formatting the installer from a Windows machine.