Headlight short

Jmo, if it were mine, I'd replace it cuz of all the things you can't see.
If absolutely nec. You could clean all those contacts for temporary use.
If nec, after cleaning, hook it up under dash, hold it in your hand, turn everything on, hi-beam too, for a few mins, - feel for heat.
The rheostat is supposed to get warm/hot when It's in use, controls dash/dome lite.
Scrutinize and clean/replace all the female spades in the holder, with "wire" tooth-brushes, and there are electrical contact cleaners avail.
Let fear and common sense prevail .
I normally say good luck, that doesnt seem appropriate. lol
Cheers

EDIT