McLaren's Oscar Piastri crashed into the wall as the red flag was issued for a second time during P2 in Monaco.