Or pull the wordpress posts using GIW in small batches in multiple tries. The plugin won’t re-publish posts if it is already there. There should be some progress this way. One all posts are published, then future changes shouldn’t be that memory intensive.
I’m also curious to know your website URL and the github repo if possible to see how the plugin is used.