This may be related to the version of the YesYouKan plugin. See YesYouKan in Joplin 3.1.20 nuked a non-kanban note, leaving behind YesYouKan stub inside - #5 by laurent for details.
To recover the notes, it may be possible to restore them from note history.