The ground from trans to frame is new and in good shape.
While the gauge was failing I began inspecting the ground and other connections at the gauge itself. The gauge started working while I was messing with it and I cannot tell which connection was the issue. But the item in the photo below is something I have not seen before. At first I thought it was a fuse but maybe it is a resistor?