Shared mailboxes in Outlook cannot not be opened be opened if public mailboxes are configured.
Users may see the following exception:
Delete any existing public folder mailboxes in the Exchange admin center: