The used input tensor is too small in its spatial size, so that the pooling layer would create an empty tensor.
You would either have to increase the spatial size of the tensor or change the model architecture by e.g. removing some pooling layers.