World no. 1 Jannik Sinner has survived a mid-match health scare to keep his title defence alive at Melbourne Park.