thinking about it again, the connector that is easy to put in reverse in the EGT sensor, not the RPM.
try to degauss the sensor by running a powerful magnet around the front cowl of the turbine and see if it makes any difference.
you can also open the turbine cowl to check if you have a loose connection in the RPM sensor. you will see it mounted on a small PCB under the hood.