Below you can see the front-view size comparison of the Panasonic GH5S and Nikon D850. The Panasonic GH5S is 7 mm narrower and 26 mm shorter than the Nikon D850 but it is also 8 mm thicker.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.