I'm not a bit surprised. I so often hear from people who, having found you can nicely use JavaScript to automate a dozen files, set of to do hundreds or thousands (or even hundreds of thousands). Acrobat isn't made for it, isn't tested for this sort of thing.
If you really must try to use an interactive tool to do the job of a batch tool, at least quit and restart every hundred files or so.