Can you share the exact error message you are getting?
According to Microsoft’s documentation, it’s possible to use the DISM /online /Set-Edition: command to change to a new edition of Windows.
You can also use KMS to activate the enterprise version.
To use KMS, you need to have a KMS host available on your local network. Computers that activate with a KMS host need to have a specific product key. This key is sometimes referred to as the KMS client key, but it is formally known as a Microsoft Generic Volume License Key (GVLK). https://learn.microsoft.com/en-us/windows-server/get-started/kms-client-activation-keys
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer–