Its better to isolate yourself than be pissed all day. I cant stand my husband right now lol. I even kicked him out of our room. It should pass and the time alone is actually pretty nice.
I have gone thru something similar, I had no patience for anyone, mood swings. I just try to breathe, calm down and move on. Try not to let it affect your day to day.