Measure the voltage between ECM and chassis ground.
Connector & terminal
(B137) No. 31 (+) — Chassis ground (−):
Is the voltage less than 0.7 V?
Contact your SUBARU distributor service.
NOTE:
The probable cause is considered as the deterioration of multiple parts.