Carlos Alcaraz says he had to get through some "difficult moments" in a 6-4 7-6 (7-5) win against Arthur Rinderknech in the Qatar Open first round.