i recently upgraded a computer. windows 10 deactivated itself due to the hardware change. i tried everything i could to reactivate. microsoft support told me my only solution was to buy a new license. microsoft treats its customer with contempt.
Then upgrade and reboot until it deactivates, then it should let you fix it with your microsoft account... Once that happens, you can remove the microsoft account from your computer.