You may need to finetune your memory settings to purge your buffer more frequently.
Press the Shift key and mouse over to the menu to select Preferences. Keep the Shift key down at all times. Select Preferences with the Shift key still down. Once you’re in the preferences dialog, select the drop-down menu, if you are still holding the Shift key down, you will see an option for Secret (or Scheret – depending on the version of AE). Release the Shift key and select the aforementioned preference.
In its dialog window, set memory to purge every 5 frames. Restart AE and give the render another go. Your last option, if the above fails, is to set AE to purge its memory buffer each frame – value of 1.
If all of these fail, then you may have some plugin issues. So let us know what plugins you have that may cause this issue. You’ll want to check the Websites of the plugins that you own to see if they have updated versions.
HTH
Roland Kahlenberg
https://www.broadcastGEMs.com
customizable animated backdrops with Adobe After Effects project files