My Query Keeps Blanking out and Have to run PiHole - r Repair to fix it Repeatedly

If file corruption occurs on a Pi, always check below for "under-voltage" messages in the Linux kernel ring buffer/log with journalctl:

Could also search the whole journal for voltage messages:

sudo journalctl --full --no-hostname --pager-end --grep voltage

Or if it says --grep isnt supported/compiled:

sudo journalctl --full --no-hostname | grep -i voltage