To complete the steps below, you'll need the email address and password associated with your active and licensed Microsoft 365 subscription. This may be your Microsoft Account or the account you received from your organization.
Check to make sure your internet is working on the Mac you're trying to install on. You can do this by opening your internet browser and going to www.microsoft.com. If the page loads, your internet connection is working
Reset your license files
Open Spotlight by selecting the magnifying glass at the top right of your desktop
Search for and open Keychain
Type in Office and then delete the data license file