Office 365 is a subscription service provided by Microsoft. One of the products includes Office 2016 (which is what is most commonly installed by default as of this post). The first step is to understand which version of Office that your organization is installing and then go forward from there. If you are using Office 2019, then this version is only supported in Pega Robotics 19.1 and higher.
If you are having a specific issue, I would recommend creating a Support Request with Pega Support to investigate the issue with you.