I am able to reproduce this by being moved out of range of the chest while still in the gui. Sometimes the chest is stuck completely open and twitches, but most of the time the chest is stuck open and closes for the duration of being used. We tried to see if we could dup items with this, and found the issue does not happen if you move the contents of the chest.
This issue just started today on my realm i've had for months now. When joining today, only a few hours after playing fine before, I got the message that messages were not verified. My other friend was unaffected as he already had 'only show secure chat' set to off already
this is on 1.20.1