Microsoft 365 features that help users manage their subscriptions, account settings, and billing information.
When you purchase or activate a Microsoft 365 subscription, that becomes associated to the Microsoft account used as a digital licence, and there is no native method available to move that to another Microsoft account.
The best option would be to cancel the subscription using the steps provided on this link and then take out a new subscription on the correct Microsoft account.
Then, you should be entitled to a pro-rata refund, you can check your eligibility to a refund using the steps on this link.