Not sure swapping the ECM is a great idea. Probably won't hurt anything, but those computers are programmed for the different engine/transmission setups. So even if the original code goes away, it may set several other codes.
And, some of those codes might prevent the original code from occurring.
I would check the wiring going to the tps. The unit is powered by a 5 volt power supply. A short to from the output to that supply would cause that code.
Also a bad ground to the sensor would cause that, since its just a variable resistor to ground.
If the ground reference goes away, the computer is going to see the full 5 volts which will set the code.
Look at the connector real close. and the wiring.