This is usually caused by poor physical connections. With the game sitting in attract mode. Gently flex on the MPU and driver interconnect and MPU chip sockets. If it resets when touch it, it probably needs reworked.
Also good idea to look at flipper diodes and the +5v power supply.