I'm sorry that happened to you, and it's good that no one was hurt. But, I think it would be best for you to talk to a professional about it, so you can at least process your thoughts. There may be free mental health hotlines available in your country, maybe you can try to check it out? I hope you get better soon!
In 2022, I also experienced a road accident. Mainly I was crossing the road and a bike literally crashed with me. I could not fathom the incident for a while. It was kinda like all of a sudden I found myself fallen on road. When I actually understood that I got into an accident, my mind started to process everything. Out of habit I said sorry and the biker literally lashed out on me. Even though it was his fault. I was alone at that time, so I didn’t say anything. I got up with difficulties. My leg was hurt. I saw a vehicle passing by. Got into it. Went to home. Just right before my grandma opened the door, I burst into tears. The entire time I was holding myself back from crying. But at that time I was literally crying like a baby. My mom rushed to me. Ohh gosh!! I didn’t feel much pain until I reached home. After reaching home I felt I was actually injured. Blood was oozing from my toes and I couldn’t move one of my legs. Now I don’t even remember which one it was. That memory is still vivid in my mind. It shook me badly back then. For a while I was afraid of crossing roads. Your story made me remember mine. I am so sorry that it happened to you. Try to talk to ur family or professionals to ease your mind and get over your trauma. May you get well soon.

I almost got an accident on the road. I am physically fine but that moment when I thought omg I'm gone, it still haunts me. I was about to crash with the other's. it was not even my fault. they even cursed at me for their fault. but I'm still scared that I can't fall asleep at night. whenever I try to close my eyes, that scary moment appears again. I can't even read any of my fav manga rn. I want to sleep but I can't yet.