Try this to identify if the database actually has a problem. We'll move the database to a new file name, then start with a fresh database. If the old database is the problem, it might be repairable.
sudo service pihole-FTL stop
sudo mv /etc/pihole/pihole-FTL.db /etc/pihole/pihole-FTL-old.db
sudo service pihole-FTL start