Eclampsia in pets

My dog/cat recently had puppies/kittens and is starting to show strange twitches and spasms

Acute Abdomen

My pet won’t eat, has a distended belly, is retching, and appears restless and in pain. She seemed fine yesterday, what could be the cause?