Against a pot size bet it's really close but as long as you call the flop there is no other option to play for the stacks. Just got unlucky.
Without knowing the opponent we might even not be able to fold it here but it's really close since he limp/call preflop and then even pot flop which could indicate to some kind of PP as well.