Inside the headlight switch is a small thermal cuttoff switch. It is basically a piece of steel that deforms when heated, and when it does, it breaks the circuit until it cools back down and re makes contact. Any time you have a connector (or in this case, the thermal switch) that does not make good contact, it will heat up. The result is melted wires and connectors or as in this case, the lights simply turn off. This thermal cut off switch only effects the head lights and not the running lights. So, here is the fix. After removing the headlight switch, you can gently pry off the cover to the switch and reveal all the contacts. If you place the switch in front of you, connector side facing away from you and the rocker facing you, you can lift the rocker off and see the thermal switch. Take a very high grit sand paper (600 works best) and gently lift the thermal wire and sand both contacts. On the left side of the thermal wire is a small tab that you can lift carefully with a small screw driver to put a little bit more tension on the thermal wire. A small note, this thermal wire is only designed to carry the current of the headlights only. If you have fog lights wired into the headlight switch it will overload this switch and you will continue to have problems, so, make sure your fog lights are wired to a relay and not directly to the switch. I hope this helps.