Not well.
People with emotional problems that drugs can help now used to be locked up in insane asylum forever,
Or people committed suicide or were not functional
None of that happens now that we have drugs to solve our problems.
Religion had even less a reference point pre-modern medicine so a lot of clinical health conditions — mental or otherwise — were viewed solely as supernatural attacks.
There likely is a very real spiritual dimension to the whole scope of the human mind AND body, so it’s refreshing when a psychiatrist or pharmacologist has both medical understanding AND faith.