I had a similar issue last week and it was the speedo connection. One wire had backed out of the receiver plug part way and was barely making contact. It would give up under heavy load after a couple of laps, but worked with the wheels off the ground. Pushed it all the way back in and problem was solved. Hopefully yours is a similarly simple fix.