Ok, I understand.
We are now entering into one of those situations that make me unhappy. If I had the truck in my service bay, I would connect a multiple trace labscope and roadtest this truck until it stalled to try to determine if the CRANKSHAFT POSITION SENSOR was faulty.
Without access to equipment, my job here becomes difficult and you are reduced to throwing parts at the vehicle. I don't like doing that because sometimes new parts that get installed are faulty,and then you really end up in the sewer...
Ok, I'll stop complaining and try to make a useful comment.
After re-reading this entire thread, I'd like to try something simple.
I'd like you to try tapping on the cranksensor. Try heating it with a hair drier. Try moving the wiring harness at the back of the engine, try moving the harness plugs at the computer... did any of these cause a change?
I'd also like you to disconnect your exhaust oxygen sensors. BOTH OF THEM. Make sure you tie the harness plugs back so they don't hit the hot exhaust and melt. The heater circuits on these share a power feed with other components and if the heaters are starting to "short out" (water intrusion over time is a problem) they may drop the voltage on A142 circuit (feeds ignition coils, injectors, etc) momentarilty and cause the engine to stall.
Drive it some more and let me know.
( 9 out of 10 mechanics asked about this would say "throw a cranksensor at it, it's usually the problem". I just hate to see you investing more money on a guess. )
IMPORTANT. If you decide to try a cranksensor, only buy it from a dealer. The non-oem units have been nothing but trouble (in my and others experience).