Glad you are not seriously hurt. As a member of the crash club, I can relate to your feelings. I rode the belt sander about 2 weeks after I bought my FJR and from the moment I stopped sliding, I started questioning my decision to "upgrade" in the bike department. And even the thought of riding all together. I told my family I'd be careful, and I let them and myself down - if I can't ride this thing responsibly, then I shouldn't ride at all.
Well, others gave me sound suggestions, so I'll pay it forward if you don't mind:
1. Give yourself time to process this. Don't get too wrapped up in the particulars now. Be thankful that you weren't hurt and that you know exactly what happened and how it happened.
2. When the mood hits you, write your thoughts down. I thought this was BS, but I was wrong. When the mind starts vomiting the analysis, it's sometimes hard to process it all at once. If you write it down, even if it's only for your own benefit, you get a chance to go back and re-study it later. This works amazingly well.
3. Fix the bike yourself. Taking the time to remove the damage and study it gives you a new appreciation for what happened. You will see the accident from all angles, and things will be much more clearer to you.
4. Get back on the bike as soon as possible. Even if it's only to ride slowly around the neighborhood. The longer you wait, the harder it will be. Do this even if you are leaning on selling the bike or even quitting motorcycling all together. Later down the road you might regret not getting back on the horse, just to prove to yourself whatever you are doubting.
5. Go back to the scene of the crime. Stand over the location, move around, and look at it from different views. Process what happened in your mind and build confidence in yourself that you understand it, and will likely not do it again.
6. Don't let your decision be set in stone. If you wake up next week and think "that's it, I'm selling the bike and moving on", don't tell anyone for a while. Let those thoughts sink in and understand the ramifications of it. Everyone has a right to change their mind, and if that happens for you, the whole thing can take place in your memory.