sounds the Yellow/white wire is rubbing on the chassis somewhere between the gauge and the tank.
Either that or the gauge itself is bad.
if you have a volt meter check the voltage on the yellow/white wire at the rear of the cluster when this happens. if it's ground or less than 1 volt then the wire is the problem. If its 1V-5V and still reads full then replace the gauge.