Make a backup (File|Backup).
Then run Data Integrity Check, after the error appears click on Rebuild, then repeat until Data Integrity Check reports no errors.
If the errors persist even after running Data Integrity Check a few times, your data is seriously corrupted.