System.IO.IOException out of nowhere

Rarely but surely this error happens while emclient is just running. Doing nothing special. On the latest version of win10. Im providing a full copy of the error below. The database check runs but gets stuck on mail_data.dat file and then says Failed. Upon next startup the same checking happens and it fails again.

System.IO.IOException: disk I/O error —> System.Data.SQLite.SQLiteException: disk I/O error
   at System.Data.SQLite.SQLiteBlob.Read(Byte[] buffer, Int32 count, Int32 offset)
   at MailClient.Storage.Data.BlobStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   — End of inner exception stack trace —
   at MailClient.Storage.Data.BlobStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at MailClient.Streams.StreamHelper.CopyStream(Stream inputStream, Stream outputStream, Nullable`1 cancellationToken, ProgressReporter reporter)
   at MailClient.Storage.Data.DatabaseCopyTool.CopyContents(Table table, Boolean sortDesc)
   at MailClient.Storage.Data.DatabaseCopyTool.CopyTableData(Table table)
   at MailClient.Storage.Data.DatabaseCopyTool.CopyInternal(String specificTable, Boolean copyIndexesViewsAndTriggers)
   at DbRepair.CorruptionChecker.CheckCorruption(RepairOptions repairOptions, CancellationToken token)
   at DbRepair.CheckingProcess.Check(CancellationToken token)
Data:
Table: LocalMailContents
databaseFile: Local Folders\mail_data.dat

I would say there is definitely a problem with the database. The best option is to delete it and start again with a new one.

If all your email, contacts and calendars are synced with online accounts, there will be no problem to delete everything, as they will sync again once you setup your account. If you have stored items in local folders, you will want to export them before you delete the database. Also, if you want to keep your settings etc. you can do this through Menu > File > Export > Export settings to .xml file.

Once you have everything exported, to delete the database, close eM Client, and then delete or rename C:\Users_username_\AppData\Roaming\eM Client. You may have to show hidden items in Explorer to do that.