That problem can occur on any number of platforms. Glock, AR-15, Pump Shotgun… if you gingerly put the slide or bolt into battery, you don’t get a bang.
the Benelli M4 bolt does go into battery quite smoothly, and it might never have the issue that other shotguns have (including the Benelli M1/M2), but if you don’t check that a weapon is ready for action (like tapping a bolt handle) and just assume…well?
Enjoy your M4, I’m out.