Hi,
The problem is that the output of your conv3 is 32x1x1 (32 channel, 1 height, 1 width), and you then try to apply a pooling layer to it with a kernel of size 2x2. But the input is too small because you would need the height and width to be at least 2.