"Compilation failed. Please report this issue on our Forum" message

The web editor randomly fails to compile my code. It says nothing other than "Compilation failed. Please report this issue on our Forum" with "our Forum" linking to Web Editor - Arduino Forum.
When the issue occurs, the editor usually continues to have problems compiling for at least another five minutes. When it starts working again, I usually get an error message about a misplaced semicolon or other minor typo I didn't make (as though it didn't save my most recent version and there was a server hang-up or something).
How can I avoid this happening so much in the future? I have autosave enabled and I manually save my code frequently.

Thanks for any advice.

Hi.

Take a quick read of this post and add any additional detail that you can.

Not quite enough to give a detailed response but it sounds like something is blocking or interrupting the process.

Common causes are poor internet connection or ISP issues.
Antivirus or other security software being to aggressive.

If it is the latter you should add the CREATE file locations to your EXCLUDE / WHITE LIST.
I can go into a little more detail when I have more information.

Hello, it's not your problem. Usually when this happens it's because of a spike of traffic on our compilation servers. Unfortunately whenever this occur usually people continue trying to compile so the spike only grows. We are changing the infrastructure to make sure to avoid these kind of things.

Hello,

Thank you both for your replies. I gather there isn't much I can do to avoid the issue. I'm glad to know what the problem is though.

ballscrewbob--I have reviewed the post you linked. When you say file locations, are you referring to the URL's corresponding to the project I'm working on? I use Windows Defender for antivirus etc. Might it be impacting the situation? I couldn't find a way to whitelist webpages in the settings.

No Ignore my Info as Matteo Has covered it and windows defender is not real antivirus and should not cause any issues.

There are specific FILE locations not URL's that sometimes help out but not an issue in your case.

Alright. Thank you for your response.