You describe panic attacks, triggered by attempts to resume riding after a serious accident. You probably did not anticipate the PAs, otherwise you wouldn't have bought another motorcycle, at least not so soon. Then too, you are left with thoughts and emotions about the accident. Understandably, many people have walked away after similar situations and never looked back. But you seem determined to at least try to stay on 2-wheels, or alternatively 3 or 4.
A problem with panic attacks is they sometimes lead to panic disorder, where a person begins to have unanticipated PAs, for no apparent reason, which brings on other problems. I've known folks who did courageous things in life, but later, suffering with panic d/o, seldom left the house, even checking the mail was a struggle. For help with the PAs and avoid potential panic disorder later, and explore whether riding is still for you, I encourage you to consider therapy. Very important to find a therapist you 'click' with, and understands your situation, ideally one who also rides motorcycles. Generally speaking, avoid social workers, and look for a licensed prof counselor (LPC) who specializes in anxiety.
Prescribers will offer meds which may be helpful, especially if in conjunction with therapy. But avoid benzos and sleep sedatives. Lotsa good meds are available, but while those may seem like miracle cures initially, they do far more harm than good in the long run.
Glad you survived, amazingly unscathed physically, but maybe with psychological injury that could use attention. The good news is, the choice is yours, you can ride again if you choose, but it would take 'work' on your part. OTOH, nothing to say you need ever ride again, if you choose not to.
Good luck and God Bless