eat humble pie
British, American & Australian, American
to be forced to admit that you are wrong and to say you are sorry.
The producers of the advert had to eat humble pie and apologize for misrepresenting the facts.
Cambridge English Idioms Dictionary