BUG: Check that values for "nrows" and "chunksize" are valid
 - [x] closes #15767
 - [x] tests added / passed
 - [x] passes ``git diff master --name-only -- '*.py' | flake8 --diff``
 - [x] whatsnew entry