Anett Kontaveit eased into the last eight at the Porsche Tennis Grand Prix when former World No.1 and two-time Stuttgart champion Angelique Kerber was forced to retire in the second set due to a right thigh injury.