Read this interesting post by The Hypnotherapy Team to find out about the unhealthy emotion of shame and its healthy counterpart, regret. Very clear exposed brief post in which you can also find some ideas for finding out which of those two emotions you may be experiencing, and some tips towards changing the negative version of the emotion towards the positive one.
The rehearsal of positive and beneficial beliefs from a hypnotic state encourages the integration of those beliefs into our subconscious mind. Reading this post, you may find out that your new, rational analysis of your situation is more accurate with reality than the beliefs you may have been holding until now. Rehearse these new ideas about yourself and the world around you in a hypnotic state and your subconscious mind will recognise them as credible and beneficial to your well being.