Measure the resistance between camshaft position sensor and engine ground.
Connector & terminal
(E36) No. 2 — Engine ground:
(E35) No. 3 — Engine ground:
Is the resistance 1 MΩ or more?
Repair the ground short between the camshaft position sensor and ECM.