Reset the circuit breaker and use a multimeter to check the heating elements. In case the heating features are faulty, replace them. If the elements are superior, then the thermostat is likely defective. In the event your water heater generates excessively hot water, it can have a faulty thermostat https://able-plumbing.net/tankless-water-heaters