Time & action
Shame, like pain, is one way we know something's off about our body or mind.
Both can be quite helpful signals but also can become problems themselves. First step is to identify the source and decide if there is anything you can do about it--now or for furture similar cases. If you're stuck, a brief case of therapy may help, especially if this feels like a pattern for you.