Ah Sheesh
Always gutting to finish (or, "not finish") in this way.
However... you hit a "something" and this means it was not easily seen and this crash was probably out of your control.
Take lots of arnica for those bruises, and I trust the bike is not too expensive to repair.
Railroad rails are so potentially lethal and I wish more clubs and organisers would choose courses without them, or cover them with carpet. They could leave a marshall there to remove the carpet if a train came!
Last year at the NZ National Road Cycling Champs, one of my sons was doing well but on one of the final laps, crossing the railway lines sent his wheel out of "true" and he was off the back of the leading bunch 'just like that'.
Sending much healing your way and try not to be too hard on yourself... we have crappy days and this was one of yours. Next time will be better![]()