I chased down a randomly dying on my MJ for a long time. Over time, I replaced pretty much everything.
Replaced EGR, coil, ignition control module, injectors(swapped in ford 19b) , 2x Mopar TPS, 2x mopar CPS, deleted the C101, fixed a bunch of bad wiring, plugs, cap, rotor, plug wires , 02, fuel pump, fuel filter air filter, relays, battery, alternator, ignition switch, IAC, MAP sensor, and the intake temp sensor, known to be in great working order ECU and TCU, welded up exhaust leaks, verified the CAT was good, thing was still randomly dying, and it actually started getting worse.
Every time I put my snap on MT 2500 with the renix adapter on it, it would just happen to run great- everything read normal every time, I was pulling my hair out, but I could never catch it when it died.... finally one time that it died, I actually caught it, right after it died.
The culprit:
The damn coolant temp sensor under the manifold
It would intermittently read way off, like switching between -16* and the actual temp of 195*, then 150*, then -22*, then back to 195*, etc etc. . After spending all that money and time(mostly time, I had a lot of these parts on hand , I hoard renix stuff) , I swapped in a 20$ CTS and it has not died once since, and that was weeks go, and the CTS reads normal all the time, whereas before It would die after constantly , you couldn't go around the block.
I suppose when it was reading -22*, -10*, 5*, etc instead of operating temp , between 180-210* wherever it actually was , that it would instantly either dump a ton of fuel and flood it badly and kill or maybe lean it out horribly bad... and letting it sit for 30 mins always fixed it....well, almost always...