Error when launching Unreal Engine as Debug session through Visual Studio 2022

On thing to try is deleting the visual studio integration tool, see Not able to compile fresh new C++ project - #3 by Engelard