In Windows 11, it is essential that you link your Microsoft account with the Windows 11 digital license on your device. Linking your Microsoft account with your digital license allows you to reactivate Windows using the Activation troubleshooter whenever you make a significant hardware change.
https://support.microsoft.com/en-US/Windows/activation/reactivating-windows-after-a-hardware-change