Making mistake at work

Made a few minor mistakes at work and was beating myself up for it.

I always did that before and I know that being detail-oriented is not my strength but I have strength in figuring things out on my own and generally quick at learning new things. My managers know that but I couldn’t help but being worried that I might get punished severely with the mistake I made.

Sometimes those thoughts involves being fired or being humiliated. I notice my anxiety goes straight up when my managers sent out emails to remind everyone of the mistakes we made.

Please help me in resolving this feeling/ thoughts.