He has now decided to stonewall me and has withdrawn all attention. Continuing to tell me he is done or leaving. I think it is about teaching me a lesson.
What triggered the stonewalling? And what lesson do you suppose he wants you to learn? I haven't read your other posts, but it sounds like the rules in the game are shifting and he's uncomfortable. That can be an indication that things are headed in a better direction.
Any way, what is the best way to deal with stonewalling? I am giving space and walking around pretending to be unbothered.
I like it! The best way I know to deal with a tantrum like this is to genuinely tap that part of me that feels at peace. Take that pretending and make it real. Breathe deeply, knowing that you can live at peace with yourself and how you've handled this.
Untangle yourself from his emotions. Let him carry his emotions. You are not responsible for them. Reframe it just a little - he's not stonewalling, he's bringing himself back to baseline, and you're giving him space he needs to do that.
I think it's awesome that you're taking emotional leadership and resetting expectations for how you want to be treated. You've got this.