Carlos Alcaraz was forced to retire after suffering an ankle injury two games into his Rio Open first round match against Thiago Monteiro.