Project broke and won't compile

Hello everyone,
We’ve been working normally on a project for the last three months since yesterday, I created a new C++ class for a component deriving from SphereComponent, it compiled fine once it was created and empty.
I added a variable with a reference type of another custom actor, added the headers for that custom class so I could create the variable.
I compiled and it gave me a big compile error and now even if I remove my new component class it keeps throwing the same error. I even tried to create a new C++ project and when compiling while creating the project it gave me the same error, I don’t know what else to try, it looks like an engine related problem, I have no idea how it triggered, here’s the error, please any advices would be helpful:

My last option would be reinstalling the engine.