A wild penultimate lap saw Charles Leclerc survive a big spin and crash into the barriers, dropping from third to sixth.