Gauges go to full when headlights on

Some wire harnesses included a ground wire for that terminal on headlight switch, where the switch was mounted in plastic, so all replacement switches have it. Adding a ground wire there can only help even if it doesn't cure a fault.