5.1 Error when creating new C++ template project

I have Visual Studio 2022 (all dependencies installed) and Unreal 5.1.
If I want to create a new C++ project from Blank or any other template I get: