First, I'm really sorry to hear about your friend's mother passing. My thoughts & prayers will be with you & all who knew her.
As far as your dozing, and waking up nauseous & with a bad headache, that sounds like it could have been an overdose. That's happened to me before & I was told that was the prob. I would definitely talk to your doctor before taking that again. Maybe he can work something out where you can take the 40 in the am & then break the 20 in half & take it at a couple different times or something. That's what my PM has me do. I can take half a pill (I take Dilaudid, though, so maybe there's a difference) and then 60 minutes later, if the pain is still horrible & my breathing is okay, I can take the other half. Spacing them apart seems to help lessen the side effects. I'm not really sure what's going on with you, but I would be especially concerned about the "dozing off" since it could mean that your breathing was too slow.
I don't know, though. Maybe you just got a much needed break from the pain and the headache & nausea were from stress and not related to the Oxy at all, but I would say better safe than sorry.
Different people metabolize drugs differently, so there's no knowing what dose is too high for you without having a doctor help you carefully monitor & analyze your response to them. I'm glad you're okay for now, but I would say you may need to be extra careful & have someone watching you until you can get a hold of your doc.
It's good that you have your husband there with you. Sometimes when I take a high dose, I make sure to have a family member or friend stop me periodically & we count my # of breaths in a minute. If it's too few, I'll drink something w/ caffeine. If I fall asleep, they will count for me & call my doc for advice when it gets below a certain number. I'm a light sleeper usually, so if they have a hard time getting me awake, we go straight to the ER. It's important to have a running list of your meds, doses and times taken & your prescribing physician's contact info; so if you don't already have that info written down (I also add my drug allergies), I would suggest you do so immediately and put it somewhere your husband will be able to grab if you need to call your doc or go to the hospital. I don't say this to frighten you or make you unnecessarily anxious about narcs, they can be extremely helpful but, they are very powerful medications & we do need to respect them.
Your pharmacist may be able to give you advice about whether you can break them in half. Maybe you can even call them today. Even if your pharmacy is closed for the holiday, often other pharmacists are helpful & can answer whether it's safe to break them in half. If you can break them, perhaps just an extra half dose in the PM could bring the pain level down enough to survive until your doc's office re-opens tomorrow. I know it's tempting to just want the pain as low as possible, especially when times are so stressful on top of everything else, but try to remember that it's only a day or two until you can talk to your doc.
take care & feel better,