OP,I know what you're going through, I've had to deal with shoulder injuries, hamstring pulls, and more recently a lower back injury.
A few months ago I couldn't squat,deadlift OR do any kind of upper body push...and I still went to the gym.
I've had no choice but to get really good at rehabbing myself. Read Cressey, Robertson.
It's very rare that you won't be able to recover from an injury. Rehab. Be patient. The only way to think is that it WILL get better.
Just think, I went from not being able to bo a BW squat to recently hitting a (modest) PR, in something like 4 months.
Fuck your ego. Rehab, start over, progress, PR.