Please check this Microsoft document for help.
Error "Value does not fall within the expected range" when changing a DFS replication group or namespace in Windows Server 2016 or Windows Server 2012 R2
https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/value-does-not-fall-within-the-expected-range
For Server 2019, update system to the latest build. The latest CU is KB5001568.
-------------------------------------------------------------------------------------
If the Answer is helpful, please click "Accept Answer" and upvote it.
Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.