Negative reinforcement has its place. It needs to be hyper targeted to be useful. If the child is not capable of the adjustment (either due to inability or not understanding) then it can mess with their head.
I’ve done the negative rant at my minion. I think all parents have. I do tend to try and temper it afterwards, with an apology, and an explanation. In many ways, that was the most useful part. It both teaches emotional regulation, by example, and provides them all the information. Knowing you’ve upset mummy or daddy is one thing. Knowing how, why, and how to fix it, is another.
I know exactly what you mean. I’ve done the same loop more than once.
Get frustrated => Vent => Realise I f@#£ed up => Apologised => Explained why I was upset, and what I actually wanted from them. => Problem fades away.
It’s a nuclear option, but effective.