I just went through this a few months ago. The symptom was it would run rough, throw a CEL for cam sensor/CPS.
The owner threw a CPS and cam sensor with no change. Same code or no code and still run rough and cut out.
They threw more parts at it, coil rail, plugs, air filter, and finally we checked the timing, set it with the DRB, test drove it 45 miles with zero issue. Before it got to us, we told them to check the harness. They said they did multiple times. We said check it again. They said they did. Alright fine, we'll throw the scanner on it and see what it is doing but please stop throwing parts at it.
Owner drives it home and at 47 miles it starts doing it again. They call and we say check the harness.
They instead throw a fuel pump at it which I told them would not fix the problem. It didn't.
Owner kept saying he could repeat it mostly by turning right and going uphill. Check the harness. We did, check it again.
Finally they dig into it and find the place behind the motor down low where the harness is chafed and shortingI'll check it