The 5 bottles is seriously bad, longer-term impacts obviously, but also on the night. Sounds like she needs some professional help.
But add prescription painkillers to the mix and there's a fair chance one night she's not going to wake up. Sorry, but you can't mix 5 bottles of wine with something like codeine and paracetamol and always be lucky.
You mention prescription med issues, rather than just taking the meds, which implies also that she's taking more than the recommended/prescribed dose, and that will increase the burden on her body, and increase the risk.
A glass of wine or two with paracetamol or ibuprofen is probably ok assuming no other health issues, and personally I would take my strongish dose of codeine/paracetamol with 2 small glasses of wine max, and generally I decrease the codeine and up the water intake if I know I'm drinking.
Aspirin and alcohol regular mixing could lead to stomach bleeding, which can be catastrophic.
Codeine or tramadol and alcohol mixing can lead to loss of consciousness and respiratory depression, leading to choking/death.
Paracetamol and alcohol is ok if infrequent/small quantities of alcohol, but I think it increases your chance of a paracetamol overdose. Not sure on that one. And obviously your liver isn't going to be great if it's dealing with paracetamol and alcohol.
(Not a medical professional.)