Problem solved by updating to the latest version of Microsoft 365.