since you say the problem is connected to the headlight start there. there are alot of wires in the headlight housing. i hooked up extra lights to one of the headlight wires, i used poor gauge wire the first time
that bad wire of mine melted a couple of wires in the headlight assembly (replaced). grounding my system. another place to look is in the fuse box for loose fuses.