espionage is not treason...treason is narrowly defined by the constitution.
https://www.nbcnews.com/think/opinion/americans-have-forgotten-what-treason-actually-means-how-it-can-ncna848651
Giving away our nations thermonuclear secrets was/is also considered treason and many people in the security field label it so. I have worked long and hard today and am not going to nitpick with you over semantics. Besides I don’t give a flying F what NBC has to say.