2 ways.
1. The problem could be software by the appliation database. You can fix that with starting Bitcoin Knots with -reindex-chainstate option which will take some hours.
2. The problem could be hardware by your hard drive. This is fixed by fixing the file system.
See this for more help.
https://bitcointalk.org/index.php?topic=5373821.0
