This just proves the point. Torsional stress gets greater the larger the object is. It's the same reason that fighter jets can do all kinds of fancy maneuvers but bombers basically fly in a straight line. (I suffered through engineering school in RL. We studied this kind of thing.)
Well, while it's certainly true that it's not a particularly smart idea to do this with large craft we have today we've also seen larger ships in Star Trek do it without getting torn apart...at reasonable speeds.
For example in "Time Squared" we can see the Enterprise-D sucked into a...I'll show you:
anyway into this and the ship goes in with its rear and first.
So she orients herself 90 degrees "up", while her engines are fighting the effect...without any stress tearing her apart.
Not to mention in STO, when a ship can orient itself 45 degrees "up", another 45 or 90 shouldn't be a problem since there's no gravity or aerodynamic stress affecting the ship...at a reasonable speed of course.
*EDIT: and to avoid such stresses, we've seen a simple solution in Star Trek 2: move up and down without changing the ship's orientation. *