Healing from years of betrayal

My husband and I have had a rough go the last few years. I caught him messaging and sexting several coworkers in 2019/2020. Found out he had a hidden email address with all his exes nudes also in 2020. And just recently found out he was calling and texting his ex from Sep 2021-Jan 2022. I know I should leave him, but I want to be able to tell my kids I tried my hardest before giving up. I’m on my journey to healing myself not only in hopes my relationship will improve and he will realize what he’s done but also if things don’t work out I will know I’m ok. Can anyone provide any tips on self love, healing from betrayal and advice from anyone who has stayed after betrayal? I know I am naive and need to leave but life just isn’t that simple.