Healing and rebuilding myself

Ater 20 years of marriage, my ex-husband moved his (much younger) girlfriend in before my stuff was moved out.  I have great days and bad days.  I am very unsure of myself which is not me.  I am usually very confident.  I am struggling with this.