I've had this same problem on several occasions. Loss of an hour or more's work. Most often seems to happen when I've popped out the note.
I was taking data from one note and updating it in a new note, deleting on the old note as I went. Had to go to a very old version of the old note to try to rebuild, but lost some important stuff completely and lost a lot of time.