If you haven't upgraded to 11.0.x, that might be a good first step, we increased the threshold tenfold.
But, to disable it temporarily, do this:
// save original setting and set your max to the size array you need
int orig_max = _default_option(VSOPTION_WARNING_ARRAY_SIZE);
_default_option(VSOPTION_WARNING_ARRAY_SIZE, new_max);
// do your thing
// restore it to previous setting
_default_option(VSOPTION_WARNING_ARRAY_SIZE, orig_max);