Practice practice practice! It doesn’t stop the bad days but it makes them easier.
Regular meditation is a way of training the mind. Helps us to identify thoughts, notice them and take a pause before acting, or not acting as the case may be. A couple of links for ya… On the forum:
and
Tara Brach is wonderful if you haven’t come across her already, I particularly like her RAIN stuff and she has a good podcast
I also like Plum Village, they have an app as well as a YouTube channel