This problem is definitely related to the latest release of Visual Studio. There are reports all over forums on the internet that after people upgraded to the latest release of Visual Studio 2019 they are no longer able to compile Unreal Engine.
In this posting, someone from Microsoft even tried to make the statement that the problem was fixed (which it is not).
So please have a look at this. It is not an Unreal Engine issue.