Regarding the Bundle product selection quantity issue?

I am trying to update the bundle product selection qty in cart programmatically but there are message occur "You should select only 4 qty" instead more. So i need to update this qty if anywhere needed. So let me know, if anyone aware about it and have a good solution.

Thanks