Ok I misread the post ,it's not going to the rev limiter when it stops shifting .. Could be the angle sensor .. Does the speedometer work properly all the time ..?..
I don't believe it could be the battery ..The TRX450 is the only ESP model that doesn't even require a battery for the ESP to work ..