Check the connection of the wire to the sending unit first. Make sure it's clean, and that the wire isn't under stress. It could be as simple as the wire disconnecting when the engine pulls to the side.
Also if your engine is pulling to the side like that... You may want to check your motor mounts, too.