I am unsure what exactly causes you to crash from clicking on the treasure boxes in CT, or any NPCs for that matter. But is it possible to not get kicked out of the boss room specifically when the treasures has spawned?
I understand this suggestion is a roundabout solution to a problem. Ideally clicking on NPCs/treasure boxes shouldn't crash/dc anyone.