You have run into two problems, unfortunately:
1- The free upgrade from Windows 7 SP1 to Windows 10 ended years ago; and
2- Microsoft stopped selling Windows 10 on January 31, 2023 and by now there are no legitimate copies remaining in stores.
Also, just saying, Windows 10 is unsupported other than for security updates.