Probably not your problem but, I had the same issue recently. Turns out the the spoke magnet for the speedometer was just a hair to close to the sensor. When I was really pumping there was enough deflection the wheel to cause the magnet to randomly tick the sensor on the way by.