you
do need a shop manual Q

the light switch has overload protection on it, when the bi-metal contacts get too hot they open and cut the current to the lights until they cool, then make contact again so you're not left permanently in the dark .... bad headlight wiring causing excess current draw - wiggling isn't gonna fix it
Bill