How much b6/ unisom?

So everywhere I see the amount of b6 to be 25mg 3 times a day but my ob says 50mg twice a day... I’ve read too much b6 is bad so seeing if anyone else takes this amount. Also are people doing 25mg or 1/2 tab unisom at night?