I am going to assume the fuel pressure was checked with a gauge and the new TPS is in the .38-.42v range at idle. It is hard to say if the ECM is acting up, but one thing can be done short of doing so and that is remove the ECM, remove and reinstall the Prom and clean the connections to the ECM and reinstall wiring connections. Be sure to disconnect battery ground before working with ECM. The ECM can be left hanging from the harness to see if that helps the running. It also keeps the ECM cooler while testing. No programming is required for a replacement ECM but the existing prom will need to be switched to the new ECM. I had some Prom communication issues last year but I was actively burning chips and fiddling with tuning and I got some very strange behavior, vaguely similar to yours, but...?