Seems like your DB is corrupted, that can be fixed by making a new one.
A 10kk hands DB is much more likely to cause issues than a normal sized DB. This must be many years of play, and as very old hands aren't very relevant today anyway you could consider making the new DB with just somewhat recent hands.