Advice..?

What is the best way to just get over or let go of bad mistakes or things that happened in the past?

I try to focus on any good that came out of the situations/choices, but despite that, I still feel my stomach churn when memories come up, and it’s really hard to get them out of my mind again...

How can I free myself?