To import MSG files into Office 365 accounts, follow these steps: ( https://www.vartikasoftware.com/product/vs-msg-to-office365-converter.html )
Convert MSG to PST: Use a conversion tool to convert MSG files to a PST file.
Open Outlook: Launch Microsoft Outlook connected to your Office 365 account.
Import PST File: Go to File > Open & Export > Import/Export and select Import from another program or file. Choose PST and locate your file.
Transfer Emails: Drag and drop the imported emails from the PST file to your Office 365 mailbox.
Verify Import: Check your Office 365 account to confirm that all MSG files have been imported successfully.