Maria Sharapova claimed she had been close to "passing out" during her second-round battle with Karin Knapp at the Australian Open.