It was very similar to the movie Cube (2021)

I'm finding a movie that features a group of people that got trapped inside white connected rooms that had square entrances like what the title says, it is very similar to the movie Cube.

I have two particular things that remember from the movie:

  1. Some of the rooms that the characters in the movie entered has different direction of gravity.

  2. One of the rooms that they've entered has this tiny tesseract a first that bounces around the wall. It wasn't harmful at first but it slowly gain size. When it became big (like human size), it hurt then like blades. So they had to go to the next room immediately. On their way to the next room one of them has got to be sacrificed as the thing got really big and they had no time.

TYIA for the one who's gonna be able to provide answers!