Sharapova and out as bug forces top seed to withdraw