I feel your pain man. I also battled for years to get to UPT (to include ETP for age/rank/TAFSC), had periodic struggles while there, but got through Trans, Nav, Form and Mission phase. Then on graduation week, with my parents, retired O-6 uncle and family friends already in town, I hooked the check and the 89, didn't get reinstated and was done. A couple of years later, I still don't truly understand it and I know I never will, so I've found peace through consciously refusing further futile attempts.
My advice to you: Whatever your support system is (God, family, friends, girlfriend, etc), lean on it. I got essentially no support from within the USAF, either locally at the UPT base or from my ANG home unit, but my parents and other family members let me know that they loved me regardless, and that helped. I've since transferred to a different unit to do a different job. I may not be "loving life" professionally a la viperdriver's roommate, but I can sleep at night because I know I busted my ass 6 and sometimes 7 days a week for a year and at every juncture I made the best decision I could with the information I had.
It seems you have also given it your best shot. I won't BS you: if you're male and caucasian, your time as a student pilot is finished. If not, you may have a shot, but either way it's time to think about, first, how best to navigate the likely upcoming stages of grief, and second, what you'll seek to do for the rest of your career. I commend your willingness to share your difficulties with what can often seem a harsh and not empathetic forum, and I certainly wish you the best moving forward. Last, if it would help you any to have a conversation with someone who has traveled this path, feel free to shoot me a DM.