Freezing up when child is in potential harm

I am so nervous asking this question but I need to know how to manage this...

I have two kids: a ten year old and a 7 month old, both girls.

I’ve noticed on a couple of occasions when I felt one of them was in some immediate threat of harm, I completely freeze up. My mind goes blank, my body stops moving, and I don’t act. I know there’s a fight-Flight-freeze reality of the brain, but I feel like I’m just lucky my kids haven’t had anything crazy happen.

Before any immediate threat, I am super conscious and mitigate risk as much as possible, but I remember when my older daughter was maybe 3 or 4, we were in SFO and getting on an elevator. I let her go first since I had the stroller and bags (it was just her and I). She was moving slow and the door started closing and she was right in the way. I just froze, not knowing if it would trip the safety and open. I honestly hate thinking about it because it makes me feel awful. Something similar happened when we were riding bikes and crossing the street. My daughter wasn’t moving quickly enough and a car was approaching. I froze again.

Yesterday, my baby girl was on the bed while I was changing her jacket that she spit up on. I pulled the tag off the new one, turned around for a second to set the tag down, and when I turned around, saw my baby rolling off the bed. I’m not sure if I would’ve been able to catch her because it happened so fast, but she landed on the ground. Thankfully she’s okay, but I’m questioning my response seeing her body had just left the bed, so maybe it was really only half a second... but it’s haunting me.

Has anyone else experienced this? Or found ways to not freeze?