Treason doesn’t require war. It can also be, and has more often been prosecuted for, not even or just giving aid and comfort to enemies, but to enemies of the subject’s state of residence.
There aren’t many treason cases in the US, I’d say 20, but certainly fewer than 50. Tokyo Rose was convicted and pardoned. I think hers is the most recent case.
Lots of espionage cases.