That all depends on the nature of your control and what type of spindle control you have.
Often with spindles that have drives for control, there are outputs like at-speed or spindle fault which the control reads and immediately does a feed hold or e-stop, depending on the designer.
With no spindle controller you would have to rely on current limiting in the drives.
Al.
CNC, Mechatronics Integration and Custom Machine Design
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.