I would check and see if the parking lights are also on when you see this happen. Power to the dash dimmer switch comes from the headlight switch.

Jim