This could be due to a bad sensor or a faulty engine component. The best way to know is for it to be diagnosed. I wouldn't want to be driving around and have my pickup die and not be able to get it restarted again. We work on gas and diesel, along with hybrids and electrics. We would be happy to take a look at your vehicle to make sure you're safe on all your adventures.
Give us a call at 541-791-2886 and let us take care of you.