Looking at your photo, these statements from the install manual suggests that moving the connector further away could improve things:
To minimize any potential magnetic interference from the connector, it is recommended to not locate the connector near the SV-MAG-236.
To minimize the possibility of magnetic interference from the connector assembly, the SVMAG-236 uses an 18-inch integral cable – the connector is remoted from the magnetometer sensor.