Let's be very specific. Assume you have two casters. The first one casts polymorph on, lets say, a Kraken, and uses portent to assure a failed save. He turns the Kraken it into a regular 1/2 inch diameter spider. The second caster casts wall of force and creates a no save 1/2 inch diameter sphere of force around the spider-kraken. The first caster immediately stops concentrating.
What happens?
For reference, the average 5e Kraken is about 100 feet in length and weighs about 4,000 pounds.
What happens if you very soon afterwards stop concentrating on the wall of force as well?
This is not the same as "running out of wildshape" because wildshape has very different language, and is generally not dismissable by an enemy (it doesnt go away as a result of anything other than damage). It would be completely within the boundaries of the game for the DM to say to a druid, "no you cannot choose to end your cat wildshape while you are still within the iron pipe."
And, unlike wildshape, which takes a full action to drop (thus likely occurs slowly), the physics answer would be very different (sudden burst of pressure as opposed to slowly building pressure).
Forcecage is also not applicable as a point of comparison as it has specific language regarding not being able to fit.
Also, for the record, this comes up all time because we have a caster with a Ring of Spell Storing, polymorph and wall of force.