Connect directly to the domain controller by using a console session or a Remote Desktop connection and change the name back.
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin