Have you installed all the required SDKs?
Run the Unreal Engine Prerequisite installer (UERootLocation]\Engine\Extras\Redist\en-us).
Open Visual Studio Installer and click Modify Installation and make sure you have these.
Worksloads:
- Game Development with C++
Individual Components:
- Windows 10 SDK (10.0.19041.0)
- C++ profiling tools
- C++ AddressSanitizer (optional)
If that doesn’t work then I’m all out of ideas