Two-time champion Naomi Osaka is out of the Australian Open after she was forced to retire injured from her third-round match against Belinda Bencic.