I have not been bucked off my bike yet, but I grew up with horses.... Instead of letting me get some sleepy old docile nag for my first horse, my mom insisted I get a green broke half arab/half welsh pony that had been spoiled rotten as a racehorse companion at the local track (essentially an S2R with a piss poor attitude). Then she put me and that pony together in a sandy paddock and let us duke it out. She said if I didn't ride her, I couldn't keep her. Keep in mind, at 8 years old, I wanted a pony more than just about anything else in the world, so there was no way I was gonna not ride her. Needless to say I probably got bucked off a thousand times in every way shape or form, onto every surface you can imagine. Not only did that pony have a bad attitude and was a biter, she would shy at _anything_ and if you've ever ridden a horse, you know how that can dump you before you even know what happened or why. I kept getting back on. and back on... and back on...
I think my mom did it that way so I'd learn to "get back in the saddle" so to speak, and that lesson has served me well through my life... Not just in the physical sense, but in the emotional sense as well.
After a year or so of riding that little brat every day, she turned into the best, sweeteest pony in the world and years later my siblings all learned to ride on her. (a different experience for them than I, I'm sure) I moved up in the world to train bigger horses (100% arabs, even WORSE!!) and continued my 'getting dumped' and 'getting back on' way of life

but with much less frequency... As I got smarter and more crafty, so did the horses though, and it would take a special brand of pill to chomp the bit in their teeth (removing my ability to steer) and scrape me off on low hanging apple branches and poles at high speeds....
I know this story is probably really random, and not completely applicable...
but every day I get on my bike, I consider myself lucky that despite what it seems like from time to time, it does NOT have a mind of it's own, and is, in general, if you know what to look for/expect, rather predictable....
And if/when i take a spill on my bike, well... that's why I spent all that money on and wear all this fancy gear EVERy time I get on her... (just like I always rode with a helmet when on horses) and hopefully, just like in your case, I'll just be able to 'dust myself off' and get back on the bike (in a manner of speaking).
My knees always shook a bit after getting dumped, and I often hurt the next day and occasionally had rather nasty bruises, scrapes and breaks... BUT what I was taught was this... My mom's words of wisdom so to speak... She insisted that I always get right back on, IMMEDIATELY. For two reasons. 1) that way the horse doesn't learn that it can just get out of doing work by dumping you; and 2) (more importantly) so that I wouldn't stop riding out of fear of pain, and I could fix the mistake I made that got me dumped... I'd always be back on that darned horse before I realized how bruised I was ... the adrenaline pumping yanno... heheh... even the time i broke my ankle and finished the day of showing with a running shoe on one foot and a riding boot on the other
So you need to figure out if it is the fear of pain or the fear of embarrassment or the fear of hurting your bike or what that is keeping you out of the saddle.
Yeah, so you got bucked off... you and your bike got a bit of road rash... you now know you can go down and it wasn't the end of the world... Learn from your experience! Try your best to not do it again...
If you need to ride timid for a bit, so be it.... Take some time to get your mojo back, at this point, don't expect it back overnight... You've given your brain a little too much time to think about it... Do the track class when you feel ready... find some fun rides that you can do yourself or with a slower rider that isn't pushing you... Maybe try dirtbike school, I hear it does wonders for in city handling and is actually better than track from that perspective... Doing something totally different but still on a motorbike might give you a bit of a reset button....