The only thing I can think of is ground wire on or around the tank. How much rust is on your frame and tank. Might be worth pulling the float and sender unit from the rear side of tank and inspecting it and related wiring.
This only makes sense for the gauge, I don't think it would kill the engine, unless it reports a failure to the PCM on the float.
Still checking book though..... good luck