Mick Schumacher crashed his Haas into a pole in the closing stages of second practice at the Spanish Grand Prix.