A bit of a long shot, but my bike did exactly the same last week. The next ride the the rear derailleur cable broke right at the shifter lever. Turns out the cable was frayed internally, preventing the shifter from pulling the cable all the way to precisely shift the largest three rear cogs.