Just a suspicion, but in past bikes I've had the 90/100 watt H4 lamps will cause excessive heat, thereby damaging the wiring to the headlight.
Not saying this is the cause, but I'd be looking at the loom in the headlight area for heat stress.
You can get cooler lamps at the original wattage that give better light than 90/100.
My old Speed Triple lost her headlights on a dark and stormy night because the plugs that connect to the back of the lamps melted with heat from the 90/100 lamps. I've never used them since.
Mick