Installing the update worked for me as well.
https://forums.unrealengine.com/t/visual-studio-2022-17-6-3-error/1198682