If you've done the TPS resistance checks in the manual and can't adjust to within spec, then yours might be bad. You might want to get a second opinion though, since those things are pretty spendy. I personally would go Toyota if I had to buy a new one. Were you getting an error code 51?