Bad Headlight Switch?

Check the dimmer switch, lots of lighting issues can be traced to a wonky dimmer. Maybe a short in that mamma jamma.
Could also be a problem with the bulkhead connector. It's a very common issue. There can be corrosion of terminals from water intrusion and/or overheating.