Perhaps a broken spring that keeps whichever shift rail in gear.
I’d remove the shift lever (not the whole top yet) and see how it looks in there, even use a big screwdriver and work each shift rail forward and back to see how they feel. Might help to jack up one wheel and have someone slowly turn a wheel while you fiddle with the transmission.