Oscar Piastri crashed his McLaren into the barriers as another red flag was brought out in qualifying for the Canadian Grand Prix.