Most likely sometime wrong with the Braking resistor up on top of the machine, or the electronics that control it. When spindle stops it dumps power to that resistor. If it cant get rid of the power bus voltage gets too high.
If its just an occasional thing might want to adjust deceleration parameters on the machine. Could happen from the stock settings being too much for a heavy workpiece.