Please help me figure out how to add a C++ class to the Blueprint project.

These errors don’t ring me any bell, but every time I had issues generating the project files it was because I was missing something in the visual studio install (almost always .NET stuff), and once it was because of the BuildConfiguration.xml file (C:\Users\Ares\AppData\Roaming\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml) that I had to edit as I explained in this post.

This are the individual components that you might need to check in the Visual Studio Installer (I hid the ones that I am certain are not responsible of this issue but I have way too many engine versions installed, so something might be unnecessary to you)
image