In my case I have the same script running on 3 computers. On one it never happens. On the second it happens 3 times per day and on the third it happens every time I run it. Closing the browser and reopening fixes it temporarily.
I am wondering if AVG antivirus is the culprit. That’s the main difference between the first machine and the other two.