Anxiety and depression while eating

If I'm eating something I'll automatically think about something bad from my past and feel like throwing up and can barely eat.It's been like this for the past couple days.I hasn't been eating much at all.I'm also a week and a couple days Pp so that seems to have raised my anxiety.