Throw runtime exception instead of assertino error on capacity exceeded.