Solder a heavy gauge wire between the CPU, driver and
supply board ground. Also take a close look at the 5 v power supply.
It could be too high (>5.1v) or too low (<4.8v) and as it heats
up it goes out of spec. Have seen both of these cause the problem
you are having.
Steve