So you were actually pledging under duress. Contracts and statements made under duress are usually treated as null and void, so you have that going for you.
I mean I don't think anything we do or say as a 5 year old is considered binding, otherwise I'm on the hook for a lot of nonsense :)
Have you considered, however, how that event shaped your developing and impressionable subconscious and possibly influenced your future behavior as an adult?
It's not something I fully understood as a child. I didn't even fully grasp the concept of "nationality" so when she asked if I was American I just said yes because I didn't know what it meant. I just understood that not saluting meant teacher mad, just like not cleaning up my toys in the classroom meant teacher mad.