Egan Bernal (Ineos Grenadiers) showed the first signs of weakness as he cracked with three kilometres remaining on Stage 17 at the Giro d’Italia.