Stop knocking your head against a wall with this, It's the extractor.
I have seen it happen two times before. Not enough tension on the extractor.
The last round malfunction is the tip off. With a full mag the cases can rest on the rounds in the mag, This supports the round a little and helps to keep it in the proper position.
With week extractor tension the last round can drop down a little
( falls down against the empty mag ) this positions the case in a way that it can't extract correctly. The slide comes back, and the front of the case drops down , it does not extract but gets carried forward again and slams into the top of the barrel, and then bumps out of the pistol. most times the case will fall closer two the shooter than the other extracted rounds.
Open the slide, Take the case with the dings in them and I'll bet they fit right against the top of the barrel. Close the slide on it and you will see how the case got dented.
As the extractor tension gets worse or with a week round, the gun will lock up with the case stuck between the breech face and the top of the barrel.
Hope it helps.
Sam