Improve invalid size error message. [1682]