Carlos Alcaraz survives scare to reach the third round at French Open