The first scenario could have been a miscarriage. The second, she absolutely needs to see a doctor if she is bleeding outside of her normal cycle. This could be a sign of cancer among other things.
If she is taking the pill regularly and correctly, the chances of pregnancy are extremely low. However, you can always be extra safe and use a condom. As I am sure you know, the pill does not protect against any diseases whatsoever.