Many of the ideas posted have good merit, it does sound like an ignition/timing issue.
The only flaw I see is that if the fault has been created by a mechanical failure such as cam phasor/timing chain or bad fuel, you would not expect it to clear when the engine reaches operating temperature.
I have two thoughts for you to ponder.
First, we're completely trusting your code reader to be operational and if it were failing to report codes, this troubleshooting task is much more difficult than it needs to be.
I would locate an auto parts store that would agree to scan your truck for free, I'm sure they're out there. This just proves your scanner to be functional and that we're not being mislead and wasting our time with misinformation.
The fact that you get 10 flashes after reconnecting the battery leads us to believe, a code should be captured and reported.
Next, I would carefully examine all the coil packs. I don't know if this would be a typical failure mode where it only works after warm but theoretically it would make sense.
Someone with more experience with Ram coil packs might know.
In theory, it would be useful information to verify all the plugs coloration but not very practical, time wise.
Hopefully, another scanner will yield a code and that will point you in the right direction.
One more thought, bad common grounds are notorious on older Ram trucks. Maybe the expansion that happens with warming up the engine restores the ground.
You might check the grounds on or near the block for corrosion.
.