Jannik Sinner was down two sets before Grigor Dimitrov hurt himself and was later forced to retire at Wimbledon.