Error nRRPResponseCode 531/541 means that the nameservers you are trying to set up are not registered yet at the registry level, so you need to make sure they are registered before updating the domain. Please contact your hosting company that provided you with the nameservers for more information.
If you want to set up private nameservers based on your domain name (e.g., ns1.yourdomain.tld, ns2.yourdomain.tld), and the domain is registered with NityGity, check this article.
That's it!
If you have any questions, feel free to contact our Support Team.