If your licence is OEM or a "digital Licence" it cannot be transferred to a new PC. "New PC" in this case being one that has significant changes from the old one. A system board change is enough, usually, to make it class as a new PC. You might be able to phone MS if you swap a system board and get them to reset it, which they usually do. Note, they have enough info to tell if you are trying to pull a fast one.
If your licence is Retail, you are allowed to transfer it. MS limit the number of transfers in a set timeframe. If you breach this, they *may* reset it over the phone, but I find they are generally less willing.
If you are a volume licence user, then I'd say you are being naughty, as no home user should be a volume user. Business users with volume licence issues should initially contact their system administrator, who can sort out the KMS with the help of MS, but that aint valid for any of us in our home environment
Note, if you have upgraded an old licence from a previous major version of Windows, say Win7 to Win 10, or W10 to W11, you will likely be using a Digital Licence...