Fwiw, I’m on the same MSVC and can compile, but will occasionally hit the issue. I’ve noticed that it seems to happen when I select “Build Solution” in Visual Studio 2022, but if I right click my game’s project and select “Build,” the build will succeed.
I’m convinced this is a visual studio issue.