Jannik Sinner considered leaving tennis entirely earlier this year before he accepted a three-month doping ban in a settlement with the World Anti-Doping Agency.