If the nTDOEN port is hooked up by mistake, is there any way to change the polarity of this port through registers?
I don't believe this is possible.
I recommend you raise an official support case from the menu above so that you can discuss this issue and potential solutions in detail with Arm.