Engine will cut off as if you turned the key off. Will run 10-15 min and just die. on 2002 Dodge Ram 2500

I have replaced a lot of electrical under the hood, new computer,fuel pump,throttle position sensor,relays ect. When the truck runs, it runs like a top. No misses or sputters and then nothing. Thanks for the help. My sanity is at stake

Asked by for the 2002 Dodge Ram 2500
Sounds like you replaced everything EXCEPT the Crankshaft Position Sensor which will cause this condition to the "T".
I have replaced this part and still having the same problem. Thanks for the response. I'm going to keep working at it. Have a great day.