IF this problem occurs when the engine is warmed up; the electronics in the CPS could be temperature sensitive indicating it needs to be replaced.
To test the CPS I recommend to members in our Off Road group when having this problem; pour some cool water onto the CPS, wait about 5 seconds and try starting the engine.
IF the engine starts and stays running for a while and shuts off again after the CPS has warmed up again; then the problem is the CPS and needs to be replaced.