Suffering is the result of identifying with your thinking.
But if you look closely you will realize that you can't control which thoughts come to mind.
When you see this, you will stop blaming yourself for "bad" thoughts and experience great relief. Then you are left with true curiosity—a kind of wonderful, open mind that is waiting to see what thought arises next.