Add checks for bad strides