Is this happening with only one type of ammo? Or are you using different brands, grain weight?
Also, is it happening with only one magazine? Mark your magazine in which this happens, and see if it happens with the other one.
I would suspect the ammo to be the problem first. It may be possible you need a new recoil spring. How much has this PPK/S been shot?
Devin