Quality control in marshmallow candy production is ensured by using high-precision equipment, closely following all production parameters, and continuously monitoring each batch of marshmallow mixture. Consistency is maintained through automated systems, which also identify any deviations from set standards.