Shame is a horrible parasitic kind of thing which ruins lives. It takes lots of work to conquer it. For me, in a nutshell I had to be brave enough and fed up enought to confront the voices and judgemental patterns of thought one by one. Their only function was to tear me down, and while they'd come from trusted sources they were nothing but poison. Shut them down, forgive the human(s) who passed the shame on to you however they did it. Commit to calling it for what it is, then shutting the shane down every time it comes up.
An old but quite useful book on this is: Healing The Shame That Binds You, by John Bradshaw
Ther ACT books someone recommended to me are The Happiness Trap, and ACT Made Simple - both by Russ Harris.
There are millions of things a person can choose to do in life both good and bad but shame can stop a person from doing any of it.