If the license is registered to that system changing the hard drive and reinstalling the SAME version of windows won’t be an issue. MS saves your system’s “fingerprint” and as long as you don’t change too many parts, it will recognize it and attach the license back to it.
If you do lose the license on reinstall, there are site that will sell you a cheap license, buyer beware, or ultimately you could switch over to something like truenas (core or scale) to run plex which is license free.
If the license is registered to that system changing the hard drive and reinstalling the SAME version of windows won’t be an issue. MS saves your system’s “fingerprint” and as long as you don’t change too many parts, it will recognize it and attach the license back to it.
If you do lose the license on reinstall, there are site that will sell you a cheap license, buyer beware, or ultimately you could switch over to something like truenas (core or scale) to run plex which is license free.