Multiple internal compile errors while building UE 4.27 from source

I’m trying to compile Unreal Engine 4.27 from the source, but getting a lot of errors. I tried a lot of different configurations with Visual Studio 2022 but nothing seems to be working.

Attached below is the output log for the recent build process.

compile_log.txt (1.2 MB)

System Specifications:
Intel core i9 14900K
Nvidia Geforece RTX 4070ti
32 GB RAM
2 TB SSD
Windows 11

Also attaching the VS 2022 configuration below:
MSVC v143 - VS 2022 C++ x64/x86 build tools (latest)
C++ ATL for latest v143 build tools


Screenshot 2024-06-04 115659