If it's an OEM copy you'll have to contact MS on the number given on the Activation Screen and explain the situation. They may give you a new code depending on how many bits you change.
If a Retail copy then you should be OK.
Xiaomi Mi Mix 2 review
What went wrong at the Designs of the Year 2017
iPhone X news: Release date, price, new features & specs
Comment créer, modifier et réinitialiser un compte Apple ?