Normally when Lightroom says "not enough memory", that's exactly what the problem is, you don't have enough memory.
A partial solution would be to make sure no other applications are running when you do this export.
The real solution is to make sure your computer has both 8GB RAM (or more) and a 64 bit operating system. One of these by itself without the other will not improve the situation.