Might be internittent ground..
Stock light is wire grounded thru stock harness, many custom changes are not.
Athough the light is somewhat grounded thru the triple tree, there is grease on the bearings, at high rpm/vibration, it can become ungrounded..
Dont ask how I found out, involves a buddy, bridge on a dark night, and light going out at 110 mph...
