Blender running out of memory in renders, but having no problem in previews
preview is not the same as rendering..
you can run out of memory buy a heavier GPU card if your out of memory.
or use a renderfarm or split up the work in layer scenes