I would take a good look at the headlight wiring harness. I had both corrode on me and would do funky stuff to the headlights. Eventually, one plug melted and the other was one showed signs of heat damage too.