I think I tried to compile Unreal 4.27.x with VS2022 and it did fail too. Have you tried with VS2019 ?