The safety just prevents the trigger from being pulled and keeps it from pivoting. When the piston is cocked, the 1st sear is pushing down hard on the trigger and any slight play will allow the sear to drop.
Put the old cylinder back in and try again. If the slam fire goes away, it would mean that the new piston may have a smaller diameter allowing the sear to release it prematurely.
Put the old cylinder back in and try again. If the slam fire goes away, it would mean that the new piston may have a smaller diameter allowing the sear to release it prematurely.