My old Bernina 930 does this sometime. Most of the time I have knocked the gear up that lengthens and shortens the stitch when I was wrestling with a large quilt. Another time I leaned over the machine and knocked the gear up. I need to tighten it a little more, but then I have a hard time loosening it to change my stitch length again.
I don't know if this will help.