It can hardly be considered treason, but it is a predisposing factor. Virtual communication is not a good thing, it is very addictive.
If it is a really friendly communication, then you can put up with it. But, alas, very often such communication reaches the point of real infidelity. I recently came across an article about cheating on the Internet at https://signscheating.com/signs-cheating-online/. Very interesting, I recommend reading it. After this article, I am more than sure that my husband is cheating on me. So you should reconsider your views on Internet communication. Or communicate exclusively with girlfriends or friends who know your partner.