B6 vitamins help please

Dr told me to take this b6 vitamin and it says on the back of the bottle not to take while pregnant. I already take gummy prenatal vitamins everyday. I went in with cramps they only seen a empty sac at 5 weeks no embryo or yolk sac.. Ive read that it reduces the chance of miscarriage has anyone else took this vitamin??