I wonder if it’s to do with RAM. After Effects eats RAM, hates running out of it and can give weird errors if it’s short of the stuff.
How much RAM do you have?
Check if there are any really large bitmap images or compositions in the project (particularly ones whose in points are on the frame where you receive the message) These could be the problem.
Try turning up After Effects’ memory allocation in the preferences.
Make sure all other applications are closed before rendering.
Try rendering at half quality. Just to see if this helps.
If you’ve been working on the file, save it, quit After Effects and then re-open the project before you render.
-felt tips