Check for intake air leaks, on both the manifold rubbers and the blanking caps on the stubs for the vacuum gauge on the manifold rubbers. Both can crack and cause issues. Spray WD40 on the rubbers to see if it settles
As for the TPS follow this:
Lift the tank locate the connector from the TPS.
Switch on the ignition, set the kill switch to run.
Disconnect the TPS connector and reconnect it.
Rev counter should go to 5000.
If it stays at 0 or goes to 10000, it is out of adjustment.
O will make the bike it feel dead 10000 will not and some set it to 10 as it advances the ignition slightly
To set it loosen the 2 Security Torx bolts on the TPS and move it until the rev counter reads 5000.
You can always try 10000 or the dynamic setting later
Tighten the screws and start the bike or turn the ignition off.
Do not overtighten the torx bolts