Seems this problem is not caused by particular file. The causes in common are opening grasshopper and using grasshopper after a while. Sometimes even happens with opening a new file.
I Googled this hoping to find a solution. Two years on and this is still an issue. I can't help in the debugging because I reliably reproduce it either :(