It's developer error. It'd be the same as a game on Linux filling up a conf file or a database with duplicates. Does Linux have mechanisms to guard against that? Didn't think so.
Sure. ulimit or cgroups can.
But this thread is getting distracted. That's a separate issue, and the applications in question can still pollute all they want within their container.