Usually when you get seemingly nonsense errors is because you are not using the officially supported Visual Studio version, MSVC, or any other build component. You can always read the specific requirements in Platforms & SDK Updates section of engine release notes. https://youtu.be/94FvzO1HVzY?t=167