You may have an issue with oil supply if the oil pressure gauge drops. It's run by a switch on the top of the HPOP reservoir and cuts out at ~7 psi. Could be a problem with the oil pickup tube. If it's cracked, then it'll suck air. You can check for that by overfilling the crankcase with oil and jacking the rear end of the truck up about 3 ft. But first you should check the oil level.

You said you replaced the IPR, so that shouldn't be an issue. They'll sometimes be intermittent, bad when hot and work again after the coil cools off.