Possibly a pinched wire in the harness - if you can find the connectors the coil resistance should be in the 11~15 ohm range - disconnecting the battery may or may not clear the code.
I have the same transmission on a different vehicle and historic codes stored in the TCM don't appear to cause a problem - I had issues with a dog chewing the harness and the TCM detecting what seemed like every possible fault, a few hours with a soldering iron and heatshrink tubing and every thing worked fine, but the codes were still there if you checked for them.