As the pledge is really just a “poem”, of sorts, and has no real standing in law, it’s not treason, nor is the “pledge” any sort of official statement of allegiance.
Save it. As explained just above, that statement has no bearing in law. FYI, I’m a PO1, USN (Retired). Love of country is something I like and practice.
IANAL but I note that in this section of code, which definitely exists as quoted (I also looked it up in the House site, the authoritative source), the word “should” is used consistently. Typically, laws make very carefully crafted use of the word “shall” to compel behavior under penalty of the law, and “will” and “should” for descriptive or less compelling direction (actually, I have never read a law that uses “should”). I can’t give you an authoritative legal opinion but I can say with certainty that these words are deliberately chosen. This part of the code may be more of a suggestion than what we normally think of as “the law.” And
Colibri’s cite says: "Aliens should stand at attention. " I think you’re an alien, correct? (And, of course, I mean that in the non-big eyed grey skinned sense.) So you’re doing it correctly.