yep, I agree with what everyone else has already said.
Do the crank angle sensor first, zero cost.
Then the TPS.
You might find some filth on the crank angle sensor,
but I'll bet dollars to donut holes your problem is the TPS.
Classic symptoms for sure.
Wait a minute,,,,
is your bike red?
you might need another motor, those red ones act up like that,
just before they leave parts strewn along the highway.
looks like a harly went that way......
Just funnin ya,
order a new TPS cause the dealer probably won't have one in stock,
and you need it..