Advice on Electrolytic Capacitor Discharging
You need to figure out the ESR (equivalent series resistance) of the capacitor and with that and the peak voltage you can work out worst case current. That in turn can be compared against the transistor's ratings.

If the peak current is too high then add some further series resistance to reduce it. It will be kinder to everything.