Hi,
You may try the following steps:
1.Try to create the PIN again. Some errors are transient and resolve themselves.
2.Sign out, sign in, and try to create the PIN again.
3.Reboot the device and then try to create the PIN again.
4.Unjoin the device from Azure Active Directory (Azure AD), rejoin, and then try to create the PIN again. To unjoin a desktop PC, go to Settings > System > About and select Disconnect from organization.
Hope above information can help you.