High pressure, weak spring, oversize firing pin hole are the leading causes.
Bad head-space is pretty far down the list.
With commercial ammunition in a factory gun look at the firing pin hole first.
They are often much larger than required.
If the gun is worth keeping (accuracy, stock fit, etc.) it is not hard to bush the firing pin hole and drill and ream to a better fit (especially on a bolt action).