distorted / squished texture on mesh edges
By default (since you don’t have anything connected to the Vector input of the Voronoi texture node) it will be using Generated coordinates which are dependent on the actual dimensions of your object. The Generated coordinates vary from 0.0 to 1.0 over the extent of the individual X, Y, Z dimensions - but that scale can be different per dimension.

To get a consistent scaling of your texture you need to use texture coordinates which are the same scale in each axis. Add a Texture Coordinate node and connect the Object output of that to the Vector input of your texture and all should be well.