Have a look at the link below for some things you can try.
I’d strongly suggest checking the sdcard and powersupply though as this is the most likely cause of corruption.
You might as well want to backup your .kodi folder or use the backupfunction of myosmc and reinstall osmc on a new card.