To export Office 365 emails to a PST file, you can use Microsoft Outlook or the Office 365 eDiscovery Export Tool. In Outlook, add your Office 365 account, then go to File > Open & Export > Import/Export, choose "Export to a file," select "Outlook Data File (.pst)," and follow the prompts to save your emails to a PST file. Alternatively, in the Office 365 Compliance Center, create a new content search to find the emails you want to export, then use the eDiscovery Export Tool to download the search results as a PST file. Both methods ensure your Office 365 emails are securely exported for backup or migration purposes.
For more info - https://www.adviksoft.com/blog..../export-pst-from-off
https://www.adviksoft.com/office365/backup.html