I've never once hit the exit instead of the loot, even when folks in PUGs used to troll and drop a ddoor on the chest on purpose.
An "are you sure" prompt on exit could be fine, but ideally we can turn it off. Though, I can see this argument be made for the prompt too "Hey SSG, why is the prompt just a single confirmation, we need to make it blink and scream and move around!"
Though this is less software engineering's problem, and maybe whoever the quest designer is slapping down the nodes in whatever scene editor they're using. That's still a human job, maybe the idea of hitting an exit instead of a chest shaped chest is incredulous to that team too. Or perhaps, they were the ddoor-on-chest casters of years past and want to partake in a little trolling - which I endorse.