well on a totally statistically invalid sample of "my living, adult family members":
done a 10k: me and a cousin = 2
not done a 10k: the other 9 people
Lots and lots of people never get there. Lots and lots never even try.
You did well to get out there and try. So it was a bad day. there'll always be those days. Have a think about what went wrong (too fast start? drink enough? hotter than normal? getting a cold? just a bad day?).
Then...have a chilled week, don't beat yourself up and by next weekend enter yourself for another 10k so you've something to focus on to get you out of the doldrums.
Take care, HH