Hi,
I suggest you try this method to remove the cached Office account identities from the registry:
1. Start Registry Editor.
2. Locate the following registry subkey:
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Common\Identity
1. Right-click Identity, and then select Delete.
Serious problems might occur if you modify the registry incorrectly. Before you modify it, please remember to back up the registry for restoration in case problems occur.
Here is an article about how to back up and restore the registry in Windows: https://support.microsoft.com/en-us/topic/how-to-back-up-and-restore-the-registry-in-windows-855140ad-e318-2a13-2829-d428a2ab0692
You can also refer to this thread and try to reset the activation state for Microsoft 365 app:
Then re-login and activate the Office with your account.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.