My best memory from reading on the subject is that chronic pain can actually affect your brain enough to change the way you think.
Also, it is not uncommon for mental health problems such as schizophrenia, bipolar disorder, and clinical depression, to surface first in your twenties.