The data or the bitcoin core files might be corrupted after the HDD is accidentally disconnected.
You have a similar issue on this link below
-
https://github.com/bitcoin/bitcoin/issues/11040According to other users, they reinstall the boost lib and Bitcoin core it fixed their issue. So try to re-install bitcoin core just make a backup of your bitcoin data including blocks so that you don't need to redownload the entire blockchain.