As a work around, might also try using a kms key as intermediary step.
Dism /online /Set-Edition:ServerStandard /ProductKey:
then if successful use your own product key below after reboot
slmgr /ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
slmgr /ato
--please don't forget to close up the thread here by marking answer if the reply is helpful--