Diagnoses of mental health disorders among active-duty military personnel jumped almost 40% between 2019 and 2023.