What is the purpose of suffering?

I have brain damage from antipsychotics that’s most likely irreversible. I used to be very spiritual before this. What’s the point?