My did something similar. During driving TCS, Slip and SES light came on. Car didn’t die, it went to limp mode with no power to run it faster than 15 mph. After restart it was running fine, with only SES on. Code was P2135 and it was calling for bad TPS (throttle position sensor). In this car, there is two of them. One in throttle body and one in accelerator. I asked my friend to run the car on snap-on computer, so we can see voltages on both sensors. Turns out both where ok. He suggested to check connections on sensors, clean them up, and use dielectric grease. That did not help an I decided to replace throttle body. That helped for maybe 3 months. One thing I noticed that it was mostly happening when was really hot. Before spending another $ on accelerator TPS i decided to unplug ECU, clean pins and connections on both plugs, and treat them with dielectric grease. Guess what?? Problem solved!!! Never happened since for a year now.