Welcome to JustAnswer, my name is XXXXX XXXXX I'm here to help get your problem resolved. Ask follow up questions, thanks.
Scope the Camshaft Position (CMP) sensor and Crankshaft Position (CKP) sensor signals. If the signals look normal, check for a loose or jumped timing belt. Check for any melted wiring around the CMP, repair as needed. Remove the CMP and inspect the target magnet behind the sensor for any cracks. If any cracks are noted, then replace the magnet.
P0344 Camshaft Position Sensor Signal Intermittent