But if the released energy (heat) stays inside the box, the weight of the box wouldn’t change. The box will get lighter only after the heat has escaped from the box to the outside environment.
It’s funny how even engineers find themselves puzzled by a question about the weight of fish swimming in a fish tank, or an airplane flying in the sky. In layman’s terms, it’s action-reaction. The weight of the fish, or plane, (respectively) is supported by the water, or air (respectively)…they are not weightless…like the flour particles floating (or suspended) in the OP’s example.
Those in the physical sciences puzzled by this should first think to draw a free body diagram which might help to prove it to themselves. - Jinx