How to fix “We’re sorry, but Microsoft Outlook has run into an error”

Microsoft Outlook 2019 is an email client that works as a standalone application. It is different from the cloud-based service of Microsoft Outlook 365/2019/2021. In addition, you have an Outlook application that works online. All these can throw the same error based on their configuration.