X3. I use the parking brake religiously, and so did my uncle who owned the truck before me. He didn't know about catching the pedal with his foot, and I didn't learn it until I had had the truck about a year...but, the pedal jumping up so violently not only took out my headlight switch and my wiper delay box, it also damaged my fuse box

the power window circuit breaker would pop out every time I released the parking brake. I finally took the circuit breaker out and added a few layers of solder to the terminal blades to make it thick enough to stay in, and I started catching the pedal with my foot, and all seems well now
To the original question, as the others said, I would replace the headlight switch. IMHO you're better off going new; they're not that expensive and one from a yard is likely to have problems with the instrument panel rheostat. While you're at it, take a look at the plug going into the headlight switch and make sure that it isn't melting apart...and, for that matter, now would be a very good time to do the headlight relay mod.