Too much or too little of this mineral can cause thyroid problems.