The only sensible options are a) do nothing or b) revoke games purchased with these codes. If I were them I would do nothing and treat it as an unplanned pricing experiment. Since a lot of these games have an online component (network effects!) the "giveaways" might increase real sales overall.
Going after this money would be a PR disaster, a legal quagmire, financially negative in all likelihood, and permanently damage their relationship with their payment processors.
I would instead invest more money in hiring proper architects.
EA's only reasonable option is to eat the loss and write the cost down as a "lesson learned".
Isn't there precedence to this? For example, cases where Amazon priced something wrong and people bought at that price, even through the the price was almost certainly unintentional. I would think Amazon would have been obligated to honor the bad price until they discovered and changed it just like companies are on the hook for honoring mistakes in ads (although I think they might be covered by disclaimers these days).
Given the new trend of not actually "owning" the games, I think this might prove difficult from a legal perspective.
(I'm not taking EA's side, I'm just pointing out some possible consequences.)