The headlight switch has a thermal circuit breaker. It resets itself after cooling. So it may have been that rather than the dimmer switch. The extra resistance of the dirty terminals could have caused the breaker to trip.
"It's just a phase. He'll grow out of it." Mama, 1964