Measure the resistance between rear oxygen sensor connector and chassis ground.
Connector & terminal
(E22) No. 4 — Chassis ground:
Is the resistance 1 MΩ or more?
Repair the ground short circuit of harness between ECM and rear oxygen sensor connector.