After market senders have a lot of known issues with accuracy. They are not an accurate reproduction of the oem sender. Search on the forum and you will find lots of info.
Sounds like you diagnosed your problem... Loose pins.
This cluster is measuring 3.8 ohms between pins and the pins are tight.
The fuel guage pins measure 0.4 ohms and feel just as tight.