In the US International keyboard layout (called "US Intl" in Windows and "US Intl with Dead Keys" in some Linux distros), in order to accent characters you use the quotes key (the one left from the enter key on an ANSI keyboard) plus the character you want to accent (e.g. ' + a gives you á), so in order to enter actual quotes you hit ' + space (single quotes) or shift + ' + space.
This seems to break auto surround in gram and words that I intend to quote get deleted as soon as I hit space. This doesn't occur in other code editors I've used. In VS Codium for example, the word disappears briefly when I hit space, but then it's detected that a quote was entered and the word re-appears and it gets surrounded by quotes.
I've attached a short video with gram (v2.1.2) and VS Codium side by side showing the behavior described above.