A memory_limit of 64M is half of PHP's default so that might be related, though I don't think we should really be tripping that for the most part.
There are a lot of gallery data types. I assume it's the media one triggering the error, however can you enable the XFMG content types in the sitemap one by one to confirm this please?