2001 3.5 pathfinder having issues starting after going on short trips. It starts fine and runs fine when cold but if I’m running to the gym when I come out it won’t start, Just cranks. If I leave it for a few hours it starts right up again. It threw a P0340 camshaft position sensor code so I replaced it started up fine went to the store and came out to a no start again. It was a Standard Motor Product sensor which are usually pretty good quality but wondering if I need to go OEM as it threw the code after it started again and I drive it home. It just makes no sense to me because it start up and runs fine until I turn it off then won’t start again until it sits for a couple hours