All I can say is that my wife 'just knows' when to keep her distance from me.
I'm not someone who gets angry or mad, the opposite in fact. But somedays I just go quiet and withdrawn and she backs off, and so do my close friends.
I don't retreat into a shell and hide, I carry on with my life but quietly, and they now ask or comment about my welfare, and that's fine with me.
But they realise that 'today' I don't want to be pestered with questions or something that can wait.
It's not often now, and it's also something that I recognise early on so I can tell people as well.
It seems to work.
Dave