I'm having a quirky problem with my TV not related to towing as it happens when I'm using it as my DD. It runs perfect but suddenly the check engine light comes on and the cruise control stops working...
A lot of codes when set will disable cruise control. It's a limp mode/ engine protection thing.
Anything with fuel pressure, especially low pressure, will do it. Clogged fuel filter would be my stab in the dark guess. Not knowing what kind of truck you have leaves a lot of guessing to be done. If it's a Dodge, the cam position sensors will do exactly what you're describing, but then I don't know the year. Yours might not even have a cam sensor.