Check validity of MBSGD parameters.