In fact, I solved this problem by chance. Initially, I set the dimensions of the kinematic body, by scaling it. But, in order to have a more appropriate shape, I used another way to set the dimensions of the kinematic body: I set the height and radius of the mesh instance and collision shape. Surprisingly, this maneuver solved the problem. Now, the kinematic body no longer sinks in the ground.
Thank you anyway!