We know from Devarim 20:8 that someone who is "fearful and faint-hearted" is sent home from battle (in optional wars) lest he demoralize others. In Sotah 8:5 Rabbi Yose the Galilean says this refers to transgressions he has committed (and so he's afraid of being punished, I think), and Rabbi Yose (different Yose) gives a specific list, all of which are forbidden marriages. A commentary at Sefaria notes that these are ongoing transgressions (for as long as he remains married), not transgressions committed in the past.
Did any ongoing transgression cause one to be sent home from battle, and Rabbi Yose is just listing examples? Or is this specifically about forbidden marriages, and other ongoing transgressions (like owning forbidden items) would not disqualify one? The passage in D'varim (and in this chapter of mishna) exempts one based on a new house, a new vineyard, or a newly betrothed wife, so it might be that only ongoing transgressions involving these things are relevant. Or it might be that a (forbidden) marriage is more public than those idols you have in your basement, so maybe that's the reason. Or maybe we say that, as with mitzvot, we do not know which are more important and so any ongoing transgression would send somebody home, ideally so he can correct the problem, and these are just examples.