Hi,
I have the same issue with UE5 and Visual Studio 2022. I had to reinstall entire engine twice, repaired it twice and the problem persists. Also some of the UE5 plugins from the Market Place will not install, even if they are compatible with UE5.
After the unsuccessful Build (not rebuild) Unreal Engine will no longer start, it shows the following error message:
Kind regards