Is it possible to set a customizable mode of "Do not disturb" for Outlook?
The latest versions of the Outlook app actually already have this new DND option "During evenings" wherein you can configure your after-work routine. By default, it is set to 5PM to 8AM schedule as you want in your question. But it can also be modified to fit a different routine. Here's the screenshot: