Previously, it was possible to use zero or negative values, which are invalid. This also prevents crashing the engine by setting a shadow size of 0 or lower from a script.
ERR_FAIL_COND
ERR_FAIL_NULL