While “going through the gears” this evening headlight dimmed all the way to completely out but would brighten to normal when getting out off the gas. Alternator? Relay? Capacitor?
Flickering lights and headlight going out could be the load shed relay ground point through the starter. There is a single bolt that connects the starter to the transmission. The rest can be isolated by O-rings. Look here and check this bolt for tightness or even missing. If this is tight, then check other earth problems as suggested. You can see it by looking in front of the battery under the back of the tank with a good flashlight.