Follow the above screen for Gmail to provide access to the Mail Merge script, click on Advanced and then “Go to Gmail/Sheets mail merge (unsafe)” continue and grant access.
Once gmail access is granted, again click on mail merge tab and you will see below screen