It you turn off “DNS rebind protection” in more settings->custom dns, NextDNS will be more stable.
But it will run into problem after several days. The problem may be in Stubby, which is the client software used to connect to NextDNS.
You can also check this post
Next yet find a solution to fix this.