DNS over HTTPS error appears continuously

Now that you've switched off DoH consistently, you should observe behaviour for a while to preclude caching effects.

If the issue persists, try to determine what domain lookup is prompting this behaviour. How do I determine what domain an ad is coming from? may help with that.