First up, confess that you are wrong. God forgives confessed sin. Then ask God to create in you a clean heart. Ask Him to show you the real cause of your troubles. He will, not to punish you, but to enable you to deal with the issue(s). Suffering is often God trying to get our attention. Or is it is just our own self will leading us astray. Whichever, God wants to bless you, not curse you. Suffering is also a means to spiritual growth. No one enjoys it, but it is often essential if we want to be real with God.