If it comes back on, you may have to replace the module.
But you at least get some more life out of until that’s needed.
This happens to me all the time. Just this week my 03 suburban went into limp mode.. tps was the code.
With an obd computer, reset it. Also saw that voltage was wonky, and the tps wasn’t tolerant of the voltage. A 1200 dollar repair avoided because I got to simply reset stuff.
My Mercedes too... giving me tons of transmissions codes. Turns out to be a loose connection on the transfer case. That was going to be a financial MASSACRE.. but with some calm troubleshooting, free repair.