i noticed my puppy was throwijg up worms last night I wormed her and woke up to a pile of poop FILLED with worms. Well I think my puppy overdose, she keeps throwing up and when I make her drink water she throws up white foam ?? Help please can't go to vet

Make sure she's not eating worms and make sure she is outside and her stomache is empty and not throwing up anymore.