My ram diesel does this at times.
In my case, it's a loose connection at the ATF temp sensor. As soon as the PCM sees an open circuit, it kicks off the OD and L-U torque converter to protect the trans.
Pull codes to see if you have something that kicked a code.