Do a non-google internet search for the old style metronomes. They have a long needle with a weight, as the weight moves up the tempo slows.
Other than factory numbers I do not know how to calculate COG vertically. It would be the center of mass so best is to guess.
Like the metronome, if there is weight at the top, and this can even be your clothes bags and pots n pans in the upper cabinet, then you have a lot of mass at the top and when the vehicle sways it will sway slow. All vehicles will sway, even a formula-1 car, but the resonance (time it takes to sway right to left) is so much quicker on a car than a tall vehicle that it feels much more noticeable at the slower rate.
With the tall height the weight that is swaying is closer to enough-mass to overcome the springs and shocks it is leaning on so has to go farther into the suspension travel before it gets pushed back. The danger is going too far and then toppling the vehicle.
I had a class-C with worn shocks and the sway could get dangerous if not corrected immediately. I drove it so much that I was good at just counter-steering to counteract the sway and stop it the first swing, but when a friend drove it the sway got so bad I thought we were going to flip. I put everything on the floor, and that help tremendously.
I got the shocks and worn parts fixed quick after that.
Your fold-down will have storage under the top bed, and even clothes are heavy at that height. Most have cabinets attached to the ceiling. If you go off road and need to lower COG then your stuff will be better on the floor.