My enthusiasm for Unreal Engine is waning quickly. Almost every time I make a change to my C++ files (mostly header files) I run into a problem where I cannot open the editor and I have to start the project again. Lately after every change I copy the whole project folder to a memory stick so I do not lose everything. My project is called MathGenie. I am using UE 5.8.2.
When I try to run the project from the Epic launcher it shows the following error:
When I say Yes to rebuild it says the following:
I have tried deleting the Binaries and Intermediate folders and right-click on the uproject file to generate Visual Studio project files, but then it shows the second message again.
How do I recover from this error and why is it so unstable when using C++ in projects?

