The back of the sear fits into a notch in the hammer.
There's a cam lobe on the left side safety shaft. It rotates forward (and out from under the front of the sear) when you move the safety to the FIRE position. It rotates rearward and under the front of the sear when you rotate the safety to the SAFE position. It's got to be a tight enough fit between the cam lobe and the sear to keep the sear from moving when you pull the trigger.
The factory triggers have a deep notch in the hammer for the sear to sit in. That allows the front of the sear to rise more so the cam lobe on the safety shaft can move under it.
The aftermarket hammers have a shallow notch the back of the sear sits in - one reason they have a nice crisp trigger pull.
Due to the shallow notch in the hammer means the sear doesn't drop down as much in the back when in the notch and the front doesn't come up as far and the cam lobe on the safety won't fit under the front of the sear like it did before the hammer was replaced.
On my first hammer replacement I had the safety out/stoned metal off the cam lobe and back in a couple dozen times trying to get it just right. After that I bought the CGW adjustable sear and used it for a quick finish to the hammer replacement job.
There may be a difference in aftermarket hammers that result in fit/function issues, too.
If I got any of that wrong (you old CZ gurus) be sure to speak up and straighten me out so I don't stay confused.