could be several things. Check if headlights have been upgraded or still original sealed beams. Could be switch on the way out, they get old, can be bad earth, or where gauge cluster grounds onto switch not making a good contact. Inspect the wiring going into the switch plug to see if any discoloured from heat, only have to be slightly worn or overheated and then shorts can occur.