Doesn't sound TPS related to me. Seems internal to the transmission or the vehicle speed sensor doing some funky stuff. I'd wait for it to do it again and maybe scan for transmission codes before you shut the vehicle off. Could be slipping out of 3rd gear too.