I agree with both PPs, point it out to him when he's acting that way.
We have some daft cyclic behaviour here too. So far always prompted by stress, usually work related. When DH starts getting stressed, it builds up, and he'll start making these stupid, surly teenager-esque faces when we're talking and I disagree on something. Then there will be huffiness, and a few snippy comments. This will build up, usually over weeks, or at least several days, with the odd apology or calm discussion in between. Eventually it will either end with an argument when I've had enough and snapped, or he will have engineered some petty little punishment for me, for some perceived slight. (disclaimer, never anything nasty or abusive, just annoyances)
We have spoken about this. He is always very sorry. The issue is that he doesn't realise when he's getting stressed, and he won't confront the problem, so he re-directs his frustration at something else, such as, the fact he's run out of socks. (wash your own, sunshine!) He also won't confront that problem, or try to discuss it with me, so he ends up irrationally resentful and acting like a dick.
He's not introspective enough to just "fix it" or even catch himself when he's doing it. If I try to get out of him what's wrong, it's exhausting, and rarely fixes the problem anyway. So our agreed work around is basically this. If he starts doing it, I ask him once if he's ok, if he carrys on, I calmly and kindly tell him he's being a dick and to go sort himself out.
I love him, and I will support him through stressful work periods any way I can. But I will not be an emotional punch bag. I know he doesn't mean to act that way, it's a difficult habit to break when you don't spot yourself doing it, and you're constantly deflecting from the real issue, but that does not mean I have to put up with shitty treatment. We agree on this! Thankfully, we seem to go longer and longer between cycles, and we're both getting better at communicating rather than snapping or getting surly.
So yes, I suggest you discuss it with him when you're not in a cycle, ask him how he'd like it pointed out when he's doing it, then do that and disengage until he snaps out of it.