You have an efi setup TPS sensors usually have a smooth sweep of voltage 05-5 volts Some go 0-12 But if you were to back probe the signal wire and step on the gas it should give you a nice steady sweep of voltage up and down with pedal travel When it’s jumpy the computer doesn’t know where the throttle plate is So inturn the control didn’t know how much fuel the car wanted to start or run right So your discovery is right on and your problem should be corrected Nice job on repair