This happens when restarting when the database flush was interrupted by an unexpected shutdown.
Let me guess... is the OP using Windows? I gave up on running node on Windows, it causes problems, it's preferable to run Bitcoin Core on a Linux distro (I use Ubuntu), OP can create a partition to use as a dualboot with Windows, without having to delete Windows.
On Windows, especially if you have a desktop and the power shut down suddenly while the node is running, it's rare that there are no problems and you have to reindex or re-download all the blocks.