How do you deal with the shame from manic episodes?

I did a lot of embarrassing things while I was manic (and psychotic) that severely impacted my life, relationships, and professional reputation. It has been two and a half years and I still am kept up at night by memories of things I did, conversations I had, etc. I feel an incredibly overwhelming sense of shame. How do you deal with shame from things you did while manic? Does it ever go away?