There are reportedly some exercises/trainings you can do to increase bone density in those regards.
https://sites.nd.edu/biomechanics-in-the-wild/2021/07/14/a-s...
https://sites.nd.edu/biomechanics-in-the-wild/2021/07/14/a-s...
Kicks are normally blocked with the lower leg in Muai Thai. This often results in shin-on-shin contact which can be very painful for both fighters. So the point isn't so much to prevent full bone breaks (which are very rare) as to toughen the bone enough to handle this abuse... and make sure it hurts more for the other guy than it does for you.