Cause
Action
There is a loose connector at the dimmer switch.
Tighten or replace the connector.
The switch is internally damaged or worn.
Replace the switch.