I've been in similar situations countless times since I got married 2 years ago. However, thanks to Almighty Allah's help & the teachings of my beloved Prophet (PBUH) I've hardly let anger get the better of me, despite being involved in extremely frustrating arguments with my wife.
Here's a hadith that I try to remember while interacting with women, particularly my wife:
"Treat women kindly. The woman has been created from a rib (the rib is crooked), and the most crooked part of the rib is in the upper region. If you try to make it straight, you will break it; and if you leave it as it is, it will remain curved. So treat women kindly." [Al-Bukhaari]
Allah SWT has made women like this. They're full of emotions & mood swings. Primarily because of the changes their body feels in different phases of menstrual cycle. One minute they'll be full of love. The next they'll be fighting with you for the most stupidest of reasons ever. And since we men have never been through those phases, we find it pretty hard to understand why they're always seeking attention.
Another very important aspect is the fact that the woman leaves her parents' home to come live the rest of her life with her husband. Just imagine how would you feel if it was the other way around. If you ask me, I would be complaining nonstop lol.
It's all about empathizing with your partner in difficult times. We, men, need to be more accomodating because we neither get pregnant, nor we have to deal with menstrual cycle issues & there's no Mother In Law keeping an eye on us all the time either
I being a Muslim know for sure there's nothing in this world that happens without Allah SWT's order. If my or anyone else's wife is being stubborn & difficult to handle, that is with Allah SWT's orders & that clearly is a test for us. It's upto us whether we remain patient, as He SWT wants us to be, or give into the frustration.
Remember, divorce is Halaal, but off all Halaal acts, it's the most disliked act in Allah SWT's eyes.
Patience is a virtue. Always be patient in such situations. Don't let anger have the better of you. And I know you might think easier said than done. Well, I say on oath that I encounter similar situation on daily basis, yet my marriage is still in tact, Alhamdulillah & I have full faith in Allah SWT that my marriage will remain in tact till I die, Insha Allah.
Patience is the key my friend.