Hello there and sorry for the circumstances that led you to experience this error.
If you have bought unwanted Coin packs above what you originally have wanted, please contact Microsoft/Xbox Support to get refund.
You can find Microsoft/Xbox Support here: Contact us | Xbox Support