 Other serious risks include pancreatitis and an increased suicide risk.Valproate is known to cause serious abnormalities in babies if taken during pregnancy, and as such it is not typically recommended for women of childbearing age who have migraines.Valproate's precise mechanism of action is unclear.