Kostyuk suffers nasty ankle roll late in thriller