Mine use to do that but every time it was rainy and wet outside. Has not done it in 2 years as an everyday driver.
What i have done: Repaced TPS (helped but did not fix)---. Seperated wires in the wriing harness so the three wires just were away from the Harness and this helped a lot--- New Brake light switch helped but not fix. ---Deep Pan on the Transmission. This had nothing to do with trying to fix the TPS problem i just wanted more transmisson oil. Has not done it one time in 30,000. RMcKinney 95 2500 SLT, AT, 4wd, 265,000 miles, K&N Filter.