Could you also post the model code, please?
I cannot infer the connection between conv4 and conv5, as you are switching from 2D layers to 1D ones and also the input channels do not match the output channels between the convX blocks.