McLaren's Oscar Piastri suffered a premature exit from his home Australian Grand Prix after crashing during a reconnaissance lap.