Additional information in the comments.
Potential work around if VS has a prompt suggesting installing addition components is to install:
Unreal Editor compiles without issue.
Compilation fails with an Error. UBT will default to specific compilers if it can find them.
Line 2349: ubt> Error executing C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.34.31933\bin\HostX64\x64\cl.exe (tool returned code: STATUS_ACCESS_VIOLATION)
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-174280 in the post.
|Component||UE - Foundation - Cpp Tools - UnrealBuildTool|
|Created||Jan 17, 2023|
|Resolved||Jan 24, 2023|
|Updated||Feb 14, 2023|