cdflasdkesalkjfkdfkjsdajfd
Are you using a VPN Kill Switch with Wireguard?
If you have activated
Settings> Network & internet> VPN > Name of your VPN > Gear icon > Block connections without VPN
it takes a second for the VPN connection to be established. If the network is already trying to access your private DNS before the VPN connection is established, this could cause the error message you described.