Secure DNS problems

I connect online to a public network when I’m at work, and I keep having to reload pages because I keep getting the SECURE DNS FAILED NO INTERNET. I have tried different fixes that I’ve read online, but none of them work. I had to turn Secure DNS off and now I don’t have the problem. I never have this problem when I’m at home.

Is there a fix for this?