
Your bitch needs to be in a safe, enclosed, bed, preferably in a darkened area so she feels like she's in a safe den. Make sure you give her plenty of fluids and give her calcium, either from your vet (Collo-cal D is excellent) or calcium tablets. Whining and digging after birth can be absolutely normal as a response to the pain of the uterus contracting, but can also be a sign of calcium deficiency.
Why did you need to give away 4 of the puppies?