I've experienced jeep wiring problems as well.
When it's running good move and flex the wires going to the cps and tb. The cps wire was a real problem for several batches of jeeps.
If that does not induce the problem expand to the other sensors. Pay particular attention where wires are routed and make bends and come out of harness or looms.
P.S. also check the lead going to the dist.