Could be she ate something that didn't agree with her - offer her some buttermilk or yogurt or any other source of probiotics. Nothing salty, tho because they can get salt poisoning easily. If you
feed her scraps, maybe be careful not to include moldy foods. Most pigs won't eat moldy stuff that would make them sick but some would. Hopefully others who know more will chime in.