Uncle Goober is right usually it’s the battery especially in the cold that can cause this. Some gears require more voltage to shift than others.
If you choose to check for mechanical issues first you can remove the shift motor and the tiny cover behind it to access the tiny shift gears. Inspect those tiny gears and and bearings for damage. Clean all the sticky grease and debris off with brake cleaner and use regular grease to reassemble.
If your bikes dash blinks when it quits shifting then report back the number of long and short blinks for code retrieval because the angle sensor or shift motor could be failing instead.
If you choose to check for mechanical issues first you can remove the shift motor and the tiny cover behind it to access the tiny shift gears. Inspect those tiny gears and and bearings for damage. Clean all the sticky grease and debris off with brake cleaner and use regular grease to reassemble.
If your bikes dash blinks when it quits shifting then report back the number of long and short blinks for code retrieval because the angle sensor or shift motor could be failing instead.