Check waveform of camshaft position sensor.
Is there any abnormality in waveform?
Replace the camshaft position sensor.
Repair the following item.
• Poor contact in ECM connector
• Poor contact of camshaft position sensor connector
• Poor contact of coupling connector