Are you using a wired bike computer? If so, check the proximity of the spoke-mounted magnet, and the fork-mounted sensor. If the space between them is close enough…when the wheel flexes during things like out-of-the saddle cranking up a hill, or a turn at higher speeds…it can cause the magnet to contact the sensor.
Dan