A mismatch between the CAM and CKP sensors can throw a CAM or CKP error the ECU know it’s not right and guessing which is at fault.
If you unplug the CAM are you still reading RPM with the scanner
If you unplug the CAM are you still reading RPM with the scanner