First thing to check is the condition of the bulbs themselves. When I first got my truck, the old bulbs were so smoked up from being ancient and hot, that I was convinced the gauge lights didn't work at all. Converting to LEDs solved that problem.
If the bulbs are good, then the headlamp switch is the next culprit. When you replace the headlamp switch, convert the headlamps to run on relays as mentioned above to keep the switch from burning up again.
If the bulbs are good, then the headlamp switch is the next culprit. When you replace the headlamp switch, convert the headlamps to run on relays as mentioned above to keep the switch from burning up again.