shall be fined under this title, imprisoned not more than 5 years or, if the offense involves international or domestic terrorism (as defined in section
2331), imprisoned not more than 8 years, or both. If the matter relates to an offense under chapter 109A, 109B, 110, or 117, or section
1591, then the term of imprisonment imposed under this section shall be not more than 8 years.