Raise ValueError for bad size elements. [1682]