Same problem for 2yrs now, jiggle some wires and it's gone for a while. Haven't found the real problem yet.
2 days ago headlights stopped working, asuming all part of the same problem. Time to get serious.
Removed air cleaner, battery tray, dipper switch, all relays I can find etc still no luck.
Observations:
Pull dipper fully back a relay squeals under dash?
All 3 three leads on headlamp connector are positive.
Voltages at dip switch seem OK.
Suspect broken earth somewhere, Still looking.