Looks like a DNS issue but without the real cluster name, no one can help finding what is wrong.
But since it is an Atlas cluster, I will be surprised if there is a real issue with DNS records.
I suspect a version error from node or deno.
My last idea is that you go on Atlas, and get the old style mongodb:// URI rather than the SRV style mongodb+srv:// URI.