Build failed [MSB3073 exited with code -1073741818]

Hey, get this error when I try to build, and I can’t find any usefull resorces on how to solve it, or what the actual problem is.

Severity Code Description Project File Line Suppression State
Error MSB3073 The command S:\UnrealEngine\UE_5.1\Engine\Build\BatchFiles\Build.bat Dwarflin Win64 DebugGame -Project=S:\bachelor\Dwarflin\Dwarflin.uproject -WaitMutex -FromMsBuild exited with code -1073741818. Dwarflin C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets 44

I reinstalled Visual Studio and unreal Engine, and that solved it for me