Hi David,
The activation code cannot be used again.
Please open the XBox app on your new PC > Library > Install MSFS from there.
https://www.xbox.com/apps/xbox-app-for-pc
I hope this information helps. If you have any more questions, don't hesitate to reach out.
Otherwise, please take a moment to rate the answer. Wishing you good luck!