It sounds like you might have an issue with the headlight switch or a wiring problem.
You could have worn or loose connector inside the switch, that is triggering the issue.
To access the switch the trim cover around the steering wheel needs to be removed.
This can also be due to a weak ground or exposed wire in the headlight harness.
I have included the headlight switch replacement and testing procedure for your reference.
Also included the wiring schematics for the headlight.
Please let me know of any questions.
Images (Click to enlarge)
Monday, September 20th, 2021 AT 9:04 AM