An emotional Matteo Berrettini retired with an injury against countryman Matteo Arnaldi in the quarter-finals at Roland Garros.