The absence of a family, church, community, and even government to provide a woman with the means to bring an unborn child to birth is at the root of the problem.
The proper use of pain medications, in the final analysis, requires a balanced approach, attending to objective indications from the patient, so clinicians can offer sufficient comfort and remediation of their pain.