Thermostat cuts off all the time.

Problem: There is a sound of boiling water

Cause: Too low water pressure, there is too less water in the water heater.

Solution: Increase the water pressure,

turn on more water to flow through the water heater. (but turn the temperature down)