A modern engine will run at full hp for extended periods, hundreds of hours. In many ways, lower power settings at lower rpms can be harder on engines than running flat out. In a family car, the cooling system would drop the ball long before anything as substantial as a head gasket. It would overheat long before any actual damage.