Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
When a Microsoft Office or Microsoft 365 subscription is activated, that becomes associated to the Microsoft account used at the time as a digital licence and there is no process provided to move that to another Microsoft account.
1
If that is a Microsoft 365 subscription, the best option may be to cancel the subscription on that account to get a refund (if applicable) and take out a new subscription on the correct Microsoft account.
2
Otherwise, the only option is to contact Microsoft Support to ask them if they are able to move the licence/subscription for you to the other account, try using this method to contact their support.
Go to this link: https://support.microsoft.com/contactus
Select Microsoft 365
Click 'Get Home Support'.
In the box provided, type billing.
Press Enter, then on the next page, scroll down and click 'Sign in to Contact Support'.
Navigate to Microsoft 365 and Office - Manage my Subscription.
Select the 'Chat with support agent in web browser' option