Headlight issue

Check the plug connection on your dimmer switch, under the carpet on the floor.