I'll acknowledge that this is probably not likely to get caught.
Integration testing could/should catch this, especially for a client side app.
A simple constraints is a good thing. "Our app shouldn't use more than 50mb of ram, or use 3gb of disk space."
load testing definitely should have caught this issue.