This reminds me of my childhood dog. She was a purebred golden retriever we got free from a breeder because she had a malformed front paw. Sweetest, friendliest dog ever.
We had a coffee table in our TV room that had an open area under it, but there were support bars running between the legs around the perimeter, a few inches off the floor. So like a rectangular semi-enclosed space. When she was a pup, she would climb in there and nap while we watched TV. One evening we were sitting down to watch something when she suddenly started whining loudly from under the table. She kept turning around and trying to lay down, but she couldn't. She had grown to the point where she could no longer fit comfortably, and she was super confused. We were simultaneously feeling really sorry for her but also laughing out loud.