Was given a Walther PPK/S and it did the same thing.
Factory fixed it, but I never trusted it. A jammed gun is worse than no gun. Once fixed, sold it and got the Sig P232 I always wanted......great pistol, incredibly accurate, Tritium sights, Hogue grips - a dream pistol....
Of course, I prefer my 9mm or .45......
Had 3 ppks not a bit of trouble with any of them.