Here's what the USCIS website says about refunds:
When you send a payment, you agree to pay for a government service.
Filing and biometric service fees are final and non-refundable,
regardless of any action we take on your application, petition, or
request, or if you withdraw your request. Please refer to the form you
filed for additional information, or you may call the USCIS Contact
Center at 800-375-5283 (for people who are deaf, hard of hearing, or
have a speech disability: TTY 800-767-1833).
So the action you can take is to call them. However, I'm not optimistic about your chances of getting a refund based on other cases I've heard of USCIS mistakes. USCIS's text above even says outright that they aren't accountable like that: "...fees are final and non-refundable, regardless of any action we take on your application..."