It sounds to me more like a secure flight issue than an ESTA one. However, I would have thought that they would have collected the necessary secure flight information when selling the ticket in this situation. I'd suggest giving BA a call to find out what the problem is (assuming you can get through, of course).