I used to have those exact same problems. I don't know exactly what it's called but it's some kind of memory phobia. I expecially didn't like to wake my parents up because I was afraid that they would just tell me that "everything's going to be alright.... go to bed"
I would just lay there in fear of what might happen next.. . and I still have those problems sometimes, but it really helps to know that at least those things happened in the past. You can learn from your mistakes and use your new knowledge to not make those mistakes in the future.
I'm sure that if a similar surcumstance were to arise that you would know what to do and stop it from happening. It's really not as bad as it seems.
When I get these problems I like to repeat what happened over and over again in my head when I'm all alone thinking, and I like to ask myself questions like, "What happened?" or "What could have been different?" Remember not to ask questions like, "What did I do wrong?" or "Why am I so stupid as to not do that?"
If you review what you can change in the future, then if it were to ever happen again, then maybe you could change the outcome.
for ex. My friend (lets just say Maddy for safety reasons) and I were playing on top of some round hay bales at her Grandparent's house. We were reletively high up and I new that it was dangerous, but we played there anyways.
Suddenly, I could feel that the hay stack was falling over. The moment I felt it I yelled at Maddy, "It's falling!" I screamed and jumped in the opposite direction that it was falling. Unfortunitely she had froze up and fell with the hay stacks. When she hit the (concrete) floor her hip had hit the ground and she couln't mover as she helplessly awaited for the giant hay bales to squish her flat. I was yelling her name and I had yelled at my brothers who were there to go get help. I finnally found Maddy. She was laying there looking up at the giant hay bale. It had cought only a couple of feet from her face onto the latch that you latch onto a tracter on a certain tracter hookup. I pulled her out from under the hay. the expression on her face showed that she was both relieved and frieghtened out of her wits. I was thinking about what had happened and what could have happened to her for weeks.
After a while I realized that if that were to ever happen again, not only would I shought a warning, but I'll be sure to grap my friend and make sure that she comes with me!
I hope my advice helped!