A long time ago, something similar happened to me, I was a silly 14 year old on his brand new Raleigh Olympus 5speed (told you it was a long time ago) I overtook my father in his car and I was clear, I really had the hammer down, and I looked back to see how much ground I had, to suddenly come to a very abrupt stop, I had run into a red Vauxhall viva with 4 very bad looking big boys, they got out and one picked me up by my ear and was about to start showing me how stupid I was, only for my dad to now be right behind him and holding his ear, he soon let go of me and they all got back in the car, the car was properly dented, those steel frames were heavy.
Dad put the forks into a vice later and straightened them with some ladders, they lasted years until the bike was stolen from school.
I’m not so sure my carbon cx bike would stand the same punishment!
Take it easy and get better, put it down to experience.