The best way to get out of a thinking frenzy or uncomfortable emotions is to simply step out. In meditation, self observation is the most important and fundamental step. The idea is to observe your self without judgement.