Tankless heaters fail differently from storage tanks. There is no large body of water to hide a problem, so the symptoms tend to be immediate: the unit will not fire, it fires and shuts down, the water goes cold mid-shower, or the temperature at the tap keeps moving.
Scale comes first
The heat exchanger transfers heat through metal into flowing water. Scale insulates that metal, so the unit has to work harder to reach the set temperature and eventually cannot. In hard water, the decline is gradual: hot water that used to be steady becomes lukewarm, flow has to be reduced to keep the temperature up, and an error code may appear.
Descaling, following the manufacturer's procedure, removes the scale. It is maintenance rather than repair, but it is the service most tankless units actually need, and skipping it is what turns a serviceable unit into a failed one.
Water-side and gas-side faults
On the water side, inlet filters clog, flow sensors drift, and a failing sensor can make the unit think there is no draw when there is. On the gas side, an undersized supply, a failing igniter or flame sensor, or a venting problem can prevent ignition or cause a shutdown during a long draw. Condensing units add a condensate drain that can block or freeze, and a neutralizer that may need attention.
The error code is a clue, not a diagnosis. The useful work is reading the code alongside inlet temperature, flow rate and gas pressure, then testing the component it points to.
What the unit can and cannot do
A tankless heater is sized by flow and temperature rise, not by household size. Two showers and a dishwasher running together can exceed a small unit's capacity, and the water will go cool regardless of repair. Groundwater is colder in winter, which reduces the achievable temperature rise. Those are design limits, not faults.
If the unit is beyond repair, replacement has to account for the gas supply, venting and condensate arrangements a new unit needs. If the problem is scale and the unit is otherwise sound, maintenance is the right service.