Hello,
This could be caused by not enough memory assigned to your VM. You could try to configure your VM with 1024MB RAM or more. You could also try to disable the dynamic memory if you have enabled it.
I find a similar issue and you could refer to the links below
https://techcommunity.microsoft.com/t5/windows-server-for-it-pro/windows-cannot-find-microsoft-software-license-terms-during/m-p/164024
Best Regards,
Ian Xue
----------
Please remember to "Accept Answer" if the reply is helpful.