How do I (mentally) cope with a major injury?

I am a 34M who has been into CrossFit and Olympic lifting for 3 and a half years. Beforehand, I was overweight and had numerous health problems due to my weight, but after starting and cleaning up my diet I lost 40 lbs (I am now 160lbs at 5’6”) and am in the best shape of my life. I did my first competition last year and was getting ready to do the Open this year Rx and another more intense competition.

However, in December of last year, I tore my left pec benching a weight I successfully benched the week prior. I had surgery for it mid January and have been rehabbing it. I’m doing well and have been progressing ahead of schedule, but I haven’t been back at my gym since the injury, and I am struggling badly with my mental health. I have been doing what I can with a lot of unilateral workouts on the right side of my body with dumbbells and kettlebells, but it’s not the same as using an actual barbell, or doing gymnastic movements like muscle ups and handstand push-ups.

I looked at myself shirtless today and it was so depressing. I am keeping my diet clean, and I haven’t gained any weight, but all the muscle I built on the left side of my body is gone. I’m on vacation right now on a beach and I refuse to be shirtless or even wear a tank top. I have put so much effort these past three and a half years, and now it’s just wasting away and I can’t do a thing about it. I have also been seeing everyone at my gym competing and registering for the open, and it makes me so sad I can’t.

I’ve been diving into my other hobbies, and I also seeing a therapist (been doing that before my injury,) but I’m struggling badly. Has anyone had a major injury and had to take time off the gym? Any advice on how to cope while I heal?