Another possibility is the spark system - it's ok in the first two gears where load isn't so great, but isn't strong enough under more demanding conditions.
Check the connectors are clean and tightly fitting.
_________________
MC21SP Plaything
BMW F800GS Bumblebee
Triumph 9551 Daytona Big boys toy
FJ1100 Sporting relic
GTS1000 oddball