Charles Leclerc had to head back to the pits in his Ferrari after hitting the wall during practice two at the Jeddah Corniche Circuit.