please help!

hi ladies I have a 9 month old daughter who's been having these holding breath spells it scares the crap out of me is any other mothers out there experiencing this with their babies and her triggers are very simple taking something away from her telling her no or not giving her what she wants it just scares me because she holds her breath turns purple and passes out and when she comes back she looks like she is confused my pediatrician said holding breath spells are not dangerous and will not hurt her or cause any brain damage it is genetic to have holding breath spells in order for your baby to have them it has to run in your family and it runs on her dad side it just scares me so bad when she has one I just want to start CPR but I can't the doctor said just to hold her and make sure she's okay there is no cure for it and she will eventually grow out of them when she is 5 years old and there is no medicine to help her