Years ago, I had that similar issue on several Beretta 92's. It happened rather infrequently - maybe 1x every 400-600 rounds. It was maddening. On a carry gun, then I'd try to get 1000k trouble free rounds thru the gun before I'd trust it. Then, it would happen again. And, itw as happening on numerous Beretta 92 pistols I owned.
I posted about it on the Beretta Forum. Someone asked what ammo I was using. I was shooting red box Federal 115gr FMJ, bought from WalMart (back when they sold ammo). A few other people then reported the same issue. Someone measured the casings of the brass on their Federal redbox ammo, and found MANY of the casings were out of spec.
I stopped shooting that ammo, and it never happened again... Now, what is annoying was that all my other guns never had an issue with this apparently out of spec ammo. Just the Berettas. But, like I said, the problem went away when I quit shooting that ammo.
That is why I suggested trying a different brand.
I don't buy red box Federal to this day.