Below you can see the front-view size comparison of the Panasonic GH5S and Pentax K-1 II. The Pentax K-1 II is 2 mm narrower and 1 mm thinner than the Panasonic GH5S but it is also 12 mm taller.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.