The primary cause of this error is an unstable internet connection. Or a browser that is not yet updated to the latest version.
Make sure you have a stable internet connection and update or reinstall your browser. In other cases, you may need to clear cache and cookies in the browser settings.
If the error still occurs, please take a look at this article. It gives more explanations and possible solutions.