A QMS provides the framework for identifying, assessing, and mitigating risks that can impact product quality and patient safety, as outlined in ICH Q9 and ICH Q10.