Why did it get so hot? Were your heaters stuck on?
I'd highly recommend this setup
Inkbird Itc-308
Appropriately sized heater
120mm case fan with printed mounting brackets.
The inkbird is a controller that will safeguard your rank from what happened tonight. If heaters stick on, or house a/c goes out, whatever. When it gets hot the Inkbird will shut off your heater and turn on the case fan to cool things down
An additional bit of info:
ALL aquarium heaters WILL break. Their design uses a bi-metal conductor that twists back and forth as water temps change. By using the inkbird, this no longer happens the same way. Even if your heater breaks and is stuck in the on position, the ink bird will shut it off.
Here are some links for you
Inkbird - Amazon $50 (there is a 30$ version without wifi
Fan - Amazon 15$
Brackets - Amazon/Etsy also $20
Those three items paired up with your existing heater will safeguard your tank and peace of mind.