checkfuncs.py: check if region is too large