Welcome to the ram 50 & mighty max club.
I’m not familiar with fuel injection, sorry, others might help. But I think you’re doing the right things to start. Are you really replacing the distributor? or just the cap & rotor?
If your problem persists after you do the above, the next thing I would do is take out the injectors and have them ultrasonic-cleaned. Dr. Injector in Federal Way is a good shop for that.

These are all necessary maintenance items anyway. If the problem still exists after that, then a bit more diagnostic knowledge would be needed . . . . .

Good luck ~ John in Kent, WA.