When a Windows 10 or 11 computer is updated its licensing data is stored on Microsoft servers.
Once licensing data is stored on Microsoft servers it enables disk drive replacements or clean installs.
Windows iso are free.
If there are any activation problems then run the activation troubleshooter.
https://www.tenforums.com/tutorials/9230-download-windows-10-iso-file.html
https://www.microsoft.com/en-us/software-download/windows10
.
.
.
--please don't forget to upvote and Accept as answer if the reply is helpful--
.
.
.