Hello PA,
In order to change the password as per expiration policy, a domain joined machine needs to be in contact with the Domain Controller of the domain to which the computer belongs.
The error means that this machine is either not connected to the network of its original domain or for some reason the domain controller is rejecting the connection of this machine. Bear in mind that, by default, the machine will be rejected from the Domain if more than 180 days have passed since the last time that connected to Domain.
Unfortunately, there is no other solution rather than to get in touch with the Domain administrators where this machine was joined in first place in order to "re-join" the domain, and thus gaining again the ability to renew the password.
Best Regards,
Yanhong Liu
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.