You did your best in an escalating situation. You were juggling so much and you are human. You are clearly a parent trying to do your best generally. You managed not to loose it and made the best decision you could in that moment. That’s all any of us can do.
Is what happened ideal in terms of his development? No. Is what happened a decent and effective decision in a highly intense situation? Yes. No parent can be perfect all the time. I think on balance, this was preferable to you loosing it more with him. It’s impressive you held it together enough to make that decision.
I think it’s a great opportunity to think about how to set things up to succeed in future and avoid this. Any practical changes. Working out what was going on for him. 2 is hard because they still sometimes cant clearly communicate what they need. If he’s wanting you close all the time, I’d be curious about that and what is going on for him - to see if there are things to help.
Social services, not as a child protection issue, but from a support angle might have services where you can have a space to unpick what’s going on.
You are working and have two kids? Is there a dad on the scene? Any other adults that have skin in the game? Think about the village around your children and who could help and where?
In order to stay calm in the face of a dysregulated relentless toddler, you need to be as well resourced as you can be. Because it is super hard and you’d had two hours of it!! That’s torturing!
How can you get more of your needs met?
If I can figure it out I’ll post a link below to a short video of a psychologist talking about how we can make small decisions that can avoid our nervous system popping.
You are carrying a lot in those mornings. Anyone could end up in that situation and making that decision so don’t beat yourself up about it. You did your best and you noticed yourself about to blow and acted in his interests.