Same thing happened on my 02 chevy 6.0. Truck just shut off, I checked the battery and was fine. Had an previous issue with an aftermarket alarm system installed prior my ownership but that had been fixed. Those aftermarket alarm systems can give multiple problems.... anyway mine never threw a code. I started the truck and drove on. The truck shut off several times after that at various days and times. I narrowed it down the the CPK, which fixed the issue. The tip off for me was as the truck was shutting off more and more, it began to become more difficult to start. Engine would try but no success. Prior replacing the CPK my mechanic changed out the fuel pump thinking it was the issue, well it was not.... so that's my experience...