When that happens, there are a couple of things you can try. First, make sure your file is saved and then go to File> Optimize Scene Size. If it still doesn't work, another thing that I've seen done that works, is to Select everything and then go to File > Export Selected. Export everything into a new file and try to render in the new file. If it still doesn't work, I'm not sure what the problem might be.