If you upgraded to Windows 10 for free from Windows 7 or Windows 8.1, you should have a digital license instead of a product key. During reinstallation, if you’re asked to enter a product key, you can skip this step. Windows 10 will automatically activate online after the installation is complete.
https://support.microsoft.com/en-us/windows/activate-windows-10-c39005d4-95ee-b91e-b399-2820fda32227
--please don't forget to Accept as answer if the reply is helpful--