With any intermittent problem the worst consequence is to your confidence in the truck. Be prepared for the next unscheduled stop. Research the pins to verify crank signal, see now what a proper crank signal looks like. Does the system have a cam sensor? Know that circuit too. Is there a check out procedure for the ignition module? Take notes so you are prepared to act quickly when the trouble presents itself. Do you have the specialized tools to back pin the ecm connector? Develope a plan to do all of these checks quickly.
Another way to look at the problem. How much does OEM crank, cam & ignition modules cost? I had this issue on a son-in-law's jeep. His had three sensors which only cost $80. I changed all three and it never died again.
Intermittent problems are the worst and are best solved with detailed system knowledge. I'm not a fan of the parts cannon unless the cost benefit provide both troubleshooting results and refresh of high failure or consumables parts.
If the components don't resolve the issue, wiring is suspect. I chased a bad CTS circuit for 6 months only to find a pin slightly backed out of the connector. Make sure all pins are seated and are locked correctly in the connector housing.
I hope you already found your issue.
Good luck!