You are only pooling once, so your activation before the linear layer has shape [batch_size, 32, 14, 14].
Add another pooling layer or change the number of input features of your linear layer to 32*14*14=6272.