Headlight flash on and off by themselves

THE DIMMER SWITCH DOES NOT CAUSE THIS. Virtually all headlight switches on "old school" U.S. made vehicles have a BUILT IN automatic reset breaker. In fact, headlight power is NOT fused on Mopars before it gets to the headlight switch.

It is probably a combination of a weak breaker and over-wattage lamps.

YOU NEED RELAYS