Hello,
To make the code not valid you need to ask for a refund. So, buy a new license of the XStore theme and submit a refund request for the current license https://themeforest.net/refund_requests/new Mention the new license code in the refund request message to allow us to check your purchase.
Regards