Bad allocation error every 4 plots

Sounds similar to this topic?