The first thing you need to establish when your pastor hurts you is to remember that he is human, and not God. This means he is capable of making mistakes just as you do. With this mindset, put your hurt in that perspective and put yourself in his shoes. Would you do the same if you were in the same/similar situation? Don’t you offend/hurt others as well? Even when you err, do you hate yourself forever or forgive yourself and move on?
The next step is to believe the best in your pastor. See him as a fellow believer in Christ who you’ve decided to stay under. You wouldn’t be in that assembly if you don’t see your pastor as a spiritual leader. If you don’t, please prayerfully locate another assembly. Remember, you could have gone anywhere, but you chose that assembly. This means there’s a level of respect and trust you have for your pastor. Therefore, this should help you believe he didn’t/wouldn’t intentionally set out to hurt you - no TRUE pastor would do that. It is not in their nature. The work of a pastor as stated in 1 Timothy 3:1-7 lets us know that being a pastor is no easy feat. In fact, they would be given stricter judgment (James 3:1) for being teachers of the word. Hence, they have to live true to God’s word in all they do.
If after all these, you perceive your pastor is intentionally and/or persistently hurting you particularly with words or in his actions, please find time to talk with him and talk it through. As you set to do this, check yourself as well. Hebrews 13:17 specifically admonishes believers to submit and obey the spiritual leaders over us so that they don’t relate “with grief and groans, for this would be of no benefit to you”. Have you been a good follower? Your answer would help you in your discussion with your pastor. A good pastor would humbly listen and be ready to make amends if necessary. You must also be ready to accept whatever explanations he gives for his actions and take them in good faith. As much as it lies in your power, do not leave a church without attempting to make amends.
Lastly, love, forgive and pray for your pastor! This is actually the best way to deal with hurt. Determine to let all hurts go in the place of prayers. When you pray for someone, you are giving God preeminence over that situation and/or feeling. There may be other deep rooted issues you face that only God is able to help you let go. Pray, forgive and move on.
God bless you!