Button press being triggered when I select Save State in bsnes (115)

I’ve noticed that when selecting Save State from the Quick Menu using my controller, it sometimes triggers the in-game action for that button. So in Mario World, Mario will sometimes jump after I press Save State. It doesn’t happen every time, but about once every 3-5 saves.

I haven’t tested extensively yet, however so far it seems like it is only occurring in bsnes. Any ideas what may be causing this behaviour? I noticed somebody on reddit had the same issue, although they didn’t specify bsnes. They did use Mario as an example though, so maybe they have only been playing bsnes.