Nevermind my previous comment, the “Game Over” glitch happens if the maze loop back to the beginning (The maze pattern where you first spawned), then the glitch will occur as soon you touch any Ghost Gals after collecting the red pellet. Tested it by skipping all mini-pellets on screen as soon as the fruit spawned.
In order to prevent this, you must always clear all mini-pellets before collecting the fruit and do NOT let the maze loop back to the beginning.