Well not really. Convolutions are not size-restricted. You may find assertions but it’s not something really related to that but the person who coded it.
What you find is an error in the reshape, which is designed to fit the fully connected size but nothing else.