I actually recently added the Microsoft logout page to µblocks domain filter at work, since it would every now and then trigger a logout the very first page load after I’d log in to the email there.
This has also somehow caused a bunch of other AD-connected systems to suddenly behave a lot better when it comes to session termination.
Edit: Since people were asking for it, this is what you need to add to the “My filters” tab in your UBO config;
||login.microsoftonline.com/common/oauth2/v2.0/logout^$document
This will prevent any requests from redirecting you to log out, timeouts etc will still invalidate your session.
Added an edit with the filter line