MV Anyone tried this "game screen freezes but sounds play" fix?

One of the very rare problems I've had with my game is a situation where the user is playing, and suddenly, the game freezes.
The "game" continues to run (you can hear the SFX etc.) but the visuals have totally frozen, and either a refresh or a reload is the only way to continue playing.

This problem is a "cosmic ray" error, in that it has absolutely no obvious cause and happens really rarely. I wasted quite a while trying to figure it out, until one day I had it happen literally between two dialogue calls in the first location of my game (which means it's been played many thousands of times without issue, and every player had the exact same switches/variables etc. because practically nothing before that point even happens).

Today I've seen this possible fix for it:


However, I see this is from 2018, and I know the engine has been patched since then.

Is anyone else familiar with this problem, and know if this will fix it? Or if this would cause problems with the present version of the engine? And for this code snippet, are there any likely side-effects I should watch out for?
I answered a thread regarding this issue earlier. But to answer your question, the only change in that snippet is to increase the skip count check to include negative values. They can occur under certain situations and, by default, the code doesn't check for them which causes a freeze.

You should be fine to make the change. But if it doesn't end up working for some odd reason, just reverse it.
This thread was a godsend. Thanks!!!
So, this "Graphics.js". should it be inserted and turned on in the plugins folder or should the code be copied into an already existing plugin?

Hope this isn't considered necro-ing. just trying to clarify this very helping thread for everyone who wonders.
So, this "Graphics.js". should it be inserted and turned on in the plugins folder or should the code be copied into an already existing plugin?

Hope this isn't considered necro-ing. just trying to clarify this very helping thread for everyone who wonders.
It's nothing related to Graphics.js. There's a reasonable explanation on how to actually apply this fix in this thread.

Original thread: https://forums.rpgmakerweb.com/threads/anyone-tried-this-game-screen-freezes-but-sounds-play-fix.135633/