I had the same thing start happening on my truck and thought it might have been the CPS but most of what I read said the CPS is dead or good not intermittent. It did it once and a while then I noticed it did it with the clutch in between shifts and the engine just fell to idle and threw a code. It was the TPS, I was able to order one from a Ford dealer selling wholesale online, under a $100, ten minutes to put in. Local dealer wanted $85 to read the code, $185 for the part and 2 hours at $95 an hour to put it in. Autozone read and cleared the code for free. My CPS did go about 30,000 miles later and it didn't go all at once, it would hesitate but with the standard the momentum of the truck would start it back up. Had time to order one online and install it in the driveway.