Prevention of the failure of metals under repeated stress