Below you can see the front-view size comparison of the Pentax 645Z and Nikon D850. The Nikon D850 is 10 mm narrower and 44 mm thinner than the Pentax 645Z but it is also 7 mm taller.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.