Are the headlight bulbs OEM or OEM replacements or the high power "bright" aftermarket bulbs? Many of the aftermarket bright lights draw too much current.
There could also be corrosion inside the headlight feed wires, resistance creates heat, and it sounds like the wiring is getting hot.

It may be time to set up the headlights on relays. Gene