Pi-hole stops resolving domains with "config error is REFUSED" in logs

Since you mention a flood of queries is involved, you may be observing rate limiting as introduced by Pi-hole FTL v5.7.

By default, that would kick in for a client that exceeds 1,000 requests within 60 seconds.
Would your router exceed those?