Probably the commonest reason for this error is that you have used stills in your sequence that are over 4K in size.
If that is the case use Photoshop (or your favourite picture editor) to reduce the size of the stills down to less than 4000 pixels and you should find the out of memory error goes away.
best wishes
Neil
http://www.patience.tv