I agree with you- GMs should disallow characters that won’t fit the campaign. Whether it is min-max characters or other broken combos, a GM has to decide if that is allowed.
Also, some characters won’t work in some adventures, and the GM should set that straight from the beginning.