Measure the voltage between ECM connector and chassis ground.
Connector & terminal
(B136) No. 4 (+) — Chassis ground (−):
Does the voltage change by shaking the harness and connector of ECM while monitoring the value on voltage meter?
Repair the poor contact of ECM connector.