My 650k7 had exactly the same symptoms. New TPS cured it,around £85 for a new one.
You can check them with a meter but its not always easy to spot the spikes in the readings.
Good news is its easy to fit,you will need to put the bike into dealer mode to set it up.
It's a subject that's been covered several times before so a quick search should give you the info you need.