The Pope's doctor has recalled harrowing moments when Francis was close to death due to his illness.