I would like to suggest you to take help of Recoveryfix IMAP Backup tool to easily backup IMAP mailboxes to Outlook PST. It also supports major IMAP servers like Gmail, Yahoo, AOL, Outlook.com, Zoho, AT&T, and others.
Supported Versions:
- Windows Operating System: Windows 365, 11, 10, 8.1,8, 7, Vista, 2008, XP, 2002, and 2000 (both 32-bit and 64- bit), Windows Server 2022, 2019 & older versions
- Microsoft Outlook: MS Outlook 97 to MS Outlook 2019 and Office 365