It may be that the flow is restricted by
shower head blocked with scale
Hose kinked or partially blocked
if the shower is old it may need to be descaled
Overheat is always caused by a reduced flow within the heater tank. Reduced flow will cause an excessive rise in the flow temperature.
Garry Knox, August 2013