Measure the resistance between generator connector and engine ground.
Connector & terminal
(B471) No. 3 — Engine ground:
Is the resistance 1 MΩ or more?
Repair the ground short circuit of harness between ECM and generator connector.