Actually as I suspected. All issues are caused by Stubby. Stubby does not seem to work good with NextDNS. At least not the version used by GL-iNet.
AdGuardHome was much better but unfortunately the AdGuardHome build was removed from GL-iNet servers and I don’t have a backup of it to revert to it!