I am so sorry this happened to you, but glad you apparently do not have a head injury. Blessings.
I ride in town about 50% of my miles and up here this time of year, the roads are replete with rocks and branches and crap and Random Foreign Objects all over the place. This morning, I somehow managed to get something of significant size and a metallic nature into the path of my front spokes for a few revolutions. It rattled and bounced and shook me a bit and then shot out the side. Scared me. Spokes seem okay. Still true. Could not find what it was and totally did not see it, despite being a defensive rider of the highest order. Sometimes, despite best efforts, stuff happens. Don't beat yourself up. Hazard of the profession. Glad you will be okay to ride another day.