It looks like it flipped over as it was being ejected (picture the dinged area on the bottom as its being fired and it does 180 degree flip end over end so the empty part of the case is now pointing back at you and almost completely ejected) and before it got fully out of the chamber, the slide caught it as it was closing and grabbed it just enough to make those marks. It didn't have enough of a 'grip' to hold it there, so the force of the slide then causes it to pivot out and over the moving forward slide slide propelling it backwards with the headstamp end flipping up abd back and then hit you in the forehead.
See if there's any kind of mark on the other end to indicate that it was grabbed this way. I don't think that happened before firing since I think the pressure would have flattened out any dings like that when it was fired.