I will personally suggest you use the MacSonik Mac Gmail Backup Tool that helps to back up Gmail mailboxes into multiple file formats like PST, PDF, MBOX, EML, MSG, etc. on Mac. This software has a premium feature that effortlessly backs up and exports multiple Gmail mailbox items in a single click without any hindrance or error to the email files. It is compatible with all versions of MacOS and also maintains the folder hierarchy throughout the conversion process.