Yes, it has happened to me once, but now it is gone. It occurs most on macs, also. Unfortunately, I don’t know how to fix this. It just stopped one day. People say that switching your color profile helps.
Here is an article on this: Typing in the script editor is extremely slow in macOS High Sierra/Mojave/Catalina