Sounds like the torque convertor may be cycling back and forth between lock and unlock. There are a few causes of this but the most commons I've seen is from AC noise being put out by the altenator causes dirty voltage and the TCC to continuously lock/unlock. You need a multi meter that reads AC voltage and take a reading right off the altenator with the truck running. Anything above around 0.1 Volts AC you have failed diodied(s) and a new altenator will solve the problem. This is assuming all your pos and neg cables are corrosion free and ends are clean and tight and good battery voltage. Any of the above can cause random driving issues as well.