What a story - glad you've moved on from being her caregiver.
No experience here either with pain medication. Insomnia was a problem when I first gave up alcohol. It does go away.
It feels good to admit that there is a problem and I hope that helped you. You are certainly not alone by any stretch. Keep posting and let us know how you are.