Ivo Karlovic was forced to retire from his first-round match against Aljaz Bedene at the Erste Bank Open.