Hi Caroline,
Thanks for posting in the community. We are happy to help you.
This issue was posted to the Service Health Dashboard (SHD) as service incident SP843810 and OD843843 starting at Jul 31, 2024, 4:41 PM GMT+8.
Title: Some users may incorrectly receive a security warning prompt when opening some Office files in SharePoint Online
User impact: Users may incorrectly receive a security warning prompt when opening some Office files in SharePoint Online.
More info: More specifically, users may incorrectly receive a security prompt when opening Excel, PowerPoint, or Word files in their respective web apps within SharePoint Online. Also, affected users may see the following message "This content presents a potential issue".
Current status: After reviewing the service telemetry, we've determined that the security warning prompt is the result of a necessary short-term fix for a separate issue that was recently implemented. We're creating a long-term fix for this separate issue that’ll remove the need for this false security warning prompt, remediating impact. We expect that it will complete development and deploy on Tuesday, August 13, 2024. To suppress the warning for trusted sites, tenants can add the trusted sites and hostnames in the internet zones feature.
Scope of impact: Impact is specific to some users who are served through the affected infrastructure, and the problem impacts users attempting to open Excel, PowerPoint, or Word files in their respective SharePoint Online web app.
Root cause: A necessary short-term fix for a separate issue was recently implemented, causing users to receive a security warning prompt when opening Excel, PowerPoint, or Word files in SharePoint Online.
Tenant administrator can view current information and updates on SHD at the link here.
https://admin.microsoft.com/Adminportal/Home#/servicehealth/:/alerts/SP843810
Based on the above server event, you can report this issue to your tenant administrator or IT department, who can view the progress of this service incident via the link above or by directly accessing the Microsoft 365 admin center.
In addition, as a workaround, I suggest you try the following steps and check if the error message still occurs.
Open Control Panel, Internet Options, Security, Trusted site, Sites, add the following URLs, and then restart the Teams app and Office applications and see the results.
https://{your-domain-name}.sharepoint.com
https://{your-domain-name}-my.sharepoint.com