If you originally had an OEM Windows licence stored on the first motherboard, that is causing the activation error.
An OEM licence does not have transfer rights to another motherboard or PC, and the free upgrade from Windows 10 to 11 only upgraded the OEM licence, it does not change it to a full retail licence that has transfer rights, the free Windows 11 upgrade licence dies with the original motherboard, you will need to purchase a new Windows licence to activate Windows on the new motherboard.