Werror=frame-larger-than error

When I put my model predictive control arithmetic in mc_att_ctrl/attitude_rates_control, I got “the frame size of 5344 bytes is larger than 3500 bytes [-Werror=frame-larger-than=]” error,how can I solve it?