I had this problem a couple of times. Then realized I was not driving the boat in 3 circles after putting it in the water, to orientate the GPS that's built into the head of the troller. If the power is cut to the troller, such as when you turn it off at the end of a day, it will most likely need to be done again. You might give that a try and see if that solves your problem of getting twisted up and trying to self correct it's self.
One feature I like about the troller was the self correcting untwisting when it gets twisted up, like when the boat gets blown around from the wind swirling. This should be done automatically. But if you don't do the 3 circle thing, it may get confused thinking it needs to self right it's self. Then it is constantly thinking it needs to untwist, while in reality, it is twisting up, only untwist then twist up again. Then repeat it's self.
This only works when you put it in calibration mode. If not it does nothing.
tmd11111 is correct, but a bit of misinformation is presented above that. Once your properly calibrate the system, said calibration is not discarded simply by turning the power to the TM off. For many years, the owner's manual of any trolling motor I've seen has recommended that power be disconnected from the TM before charging the batteries. This is why many boat builders started providing a circuit breaker that could be tripped manually to disconnect power from the TM. Doing that doesn't delete the calibration. The need to calibrate is real, but once done, you shouldn't need to do it again unless you change something about the boat at the bow (such as add or remove other installed items, including electronics).
As for a manual-mode circuit breaker for your TM, it's a good practice to trip that before charging batteries. The TM circuits might not like something that the charger does, causing damage. If the charger fails, it could do wild things like produce high voltage spikes that could damage the TM. What about a power surge from a lightning strike on the AC power for the charger? If that gets through, it could fry the TM. I even use a surge protector for the AC power to my charger in hopes of avoiding damage. Granted, the breaker doesn't disconnect the GND connection, but there's at least no longer a straight forward circuit for bad energy to follow.