A simple solution in free-floating pin designs is to make the firing pin itself very lightweight, which reduces its inertia and lessens the risk of slamfire.
The risk of slamfire is inherent in any design that uses a free-floating firing pin.