How does the sentence end?

The case kept opening by itself because of the box kept in it because the
box is too large.