There's no way to detect Stun at the moment. You can disable all Strongboxes from being opened for now if it's a big problem.
In the future, you'll be able to change the chest logic to use a flask before you open it if you need something custom like that.