Past Focused

I find whenever I act in a way towards my children that I don’t want too, I think about it and beat myself up for it long after (days, next week etc). I know I’m human and will make mistakes but I would love if I could quickly forgive myself and move on as it is taking so much of my mental energy. Any tips or study vault topics would be greatly appreciated! Thank you so much!!