Refactor error handling for loadMetadataForTopics function:
  return one of the following errors dependingly: InvalidArgumentFormatError, TopicsError, or TopicsBrokerNotAvailableError