UE4: Project could not be compiled, try to rebuild from source manually

It’s not the first time I have this error. I’m working, then suddenly the project stops compiling normally and if UE is closed, then it does not open anymore - it gives an error like on the screenshot.

It’s not the first time I have this error. I’m working, then suddenly the project stops compiling normally and if UE is closed, then it does not open anymore - it gives an error like on the screenshot.