This thread has more information about the changes to ESTA if you have recently traveled to Cuba:
https://www.flyertalk.com/forum/brit...ed-cuba-5.html
I would be calling whoever you purchased the ticket from and try to reroute so as to avoid a transit in the US as your ESTA is probably no longer valid.