Head light issue

Check the condition of the headlight switch connector for corrosion, looseness, or heat damage

Do you have heavier wattage headlights than factory?

The light switch has a built in breaker. Sometimes they simply get weak and trip early