Imagemagick’s stacking tends to get a little problematic for large numbers of images.
I’ve found myself having to do weird things like stack in groups of 8-16, then stack the results, etc - and most imagemagick builds still have fairly low internal precision.
siril is VASTLY superior for stacking. When on a tripod, I stack without performing any alignment in siril, and then convert the resulting (still bayer-CFA due to not doing demosaicing or alignment) FITS to a DNG and postprocess in RawTherapee.
Last time I tried to do alignment/correlation in siril it didn’t work out so well for me, but I may do another try at some point as it would be beneficial for some use cases to be able to do some alignment - although usually if I am not on a solid tripod I’m handheld, and then burst stacking algorithms like Google’s HDR+ (I’ve linked to an opensource implementation of that a few times) usually works better. (Unfortunately, Tim Brooks’ implementation does not handle rotation well)