This is a known bug, thank you for reporting! The problem, as you predicted, arises from the code trying to load the entire particle stack into memory. You can see a similar post here:
Which includes a link to another discussion forum post where I attached a patch file.
Let me know if it works for you!