Naomi Osaka’s quest for a first title in four years ended in heartbreak as the former world No.1 retired with an injury after winning the opening set of the Auckland Classic final.