This is what happened on most of the gambler being bust but in your case you got lucky on your final bet. I believe I have this kind of experienced too. I always bet very careful at beginning using small amount and when lose streak hits me hard then I always all in despite I just lose approximately 30% of my bankroll. This is how the typical human behave towards continuous lose. We are being pressured to place huge bets just to recover quickly without thinking how much we are betting.
We only feel the fear right after the all-in bet. I believe this is what happened to you. The chills when you think what will gonna happened to you in case your last bet lose is crazy.
Indeed, you can have control and if everything is going ok or good, than you will not really tilt and accept if you have like a small loss. It is mainly when you have a real bad streak that you want to win it back and start tilting. It still happens to me from time to time but as my bankroll is always low on all the sites, the amount I can loose is easier to accept. I still get mad at myself when it happens though.
Yolo is something that continue to happen even you know to yourself that you needed to control and avoid doing that all-in,
but in some cases when excitement and aggresiveness take place.
You will find yourself taking that big risk trying your best luck to support you, in hope that after betting
everything the outcome will favor you, crossing your finger and moving forward if things will not take place.