Measure the resistance of the harness between TCM and chassis ground.
Connector & terminal
(B54) No. 3 — Chassis ground:
Is the resistance 1 MΩ or more?
Repair the short circuit of harness between TCM and shift lock solenoid connector.