Control and shame are intricately tied together. When you give up your attachment to control, and instead choose compassion toward yourself and others, you will find your shame disappearing.
You will not be able to forgive your spouse until you fully take responsibility for your participation in the relationship issues that may have contributed to the infidelity.
I was brought up and programmed to believe in a number of ideas that have turned out to be untrue. These false beliefs led me to make various life and relationship mistakes.