Hello,
Thank you for posting in Q&A forum.
Windows 10 in S Mode is not compatible with the full version of Office 365.
As far as I know, Windows 10 S Mode only allows for installing Microsoft-verified apps from the Microsoft Store and requires Microsoft Edge for safe browsing. Could Office 365 (Version 1808) be installed smoothly on your PCs?
Switching out of S mode in Windows
Switching out of S mode in Windows - Microsoft Support
The below thread discusses the same issue and you can try out some troubleshooting steps from this and see if that helps you to sort the Issue.
Office 2019 Standard Install Error - Windows 10 S Mode | Microsoft Learn
Hope this answer can help you well.
Best regards,
Jill Zhou