Huh. It seems that making an Automator app to take images and output a single PDF takes less memory than opening 300 individual images in Preview, cmd-a, export as PDF (which makes 300 individual PDFs).