This is what Jesus said to do about a brother who sins against you, in Matthew 18:
15 “Moreover if thy brother shall trespass against thee, go and tell him his fault between thee and him alone: if he shall hear thee, thou hast gained thy brother. 16But if he will not hear thee, then take with thee one or two more, that in the mouth of two or three witnesses every word may be established. 17And if he shall neglect to hear them, tell it unto the church: but if he neglect to hear the church, let him be unto thee as an heathen man and a publican.”
This applies to pastors as much as the rank and file; in fact, those with more responsibility have even more required of them. Being a pastor isn’t the right to throw his weight around and dominate everyone else. “Pastor” means servant or shepherd, not arrogant master.
Keep in mind that blowing his stack is a symptom and not the core problem. There may be an anger or hostility issue in his life that he can’t master. Counselling to help him work out his issues [if he is willing to do this] might bring him healing and resolution. But if he refuses to repent and refuses to go through counselling then he is an unfit man for the role of pastor and the matter should be raised before the church for his dismissal.
If the pastor continues in sin but the church refuses to remove him from his post, then you must consider a church in which the leadership obeys the Bible, even if you have to start one yourself.