I’ve experienced this multiple times (with different levels) - moves jumps straight to 0 when I should have one more move left...
i actually got a screen recording from one of my latest games, and the moves jumps straight to 0 after I played the 2nd last move.
look closely at the number of moves on the top left hand corner.
https://youtu.be/qk2RjIYYNjQ