How to turn off heater bed when it exceeds temperature

AFAIK, there is currently no option to do this. See Dual Loop PID, a accurate bed surface temperature for a previous discussion on this topic.

An option might be the rather new template function for output_pin. See Add support for output_pin and fan templates by KevinOConnor · Pull Request #6695 · Klipper3d/klipper · GitHub for the implementation details and Configuration reference - Klipper documentation for some information on the general idea and where it came from.