Check for poor contact of ECM connector and camshaft position sensor connector.
Is there poor contact in ECM connector or camshaft position sensor connector?
Repair the poor contact of ECM connector or camshaft position sensor connector.
Replace the camshaft position sensor.