You did nothing to humiliate yourself and you did nothing foolish. He is the one who humiliated himself sleeping around and acting foolish. You aren’t being foolish whatsoever. No need to beat yourself up.
I am glad you get reasonable financial arrangements as you already mentioned and make sure you work with your lawyer. You are doing well. Good life is ahead of you.