You can set a limit for the number of variations on an attribute shown in the grid product From Dashboard > Appearance > Theme Options > Variation Swatches
Step 2:
Note, after set the limit, please go to Dashboard > Appearance > Theme Options > Core Options > Clear cache