It is actually healthier to your general health and to your bones to walk in wisdom and in the fear of God. God says that doing these things leads us to turning away from evil - and steering clear of evil is something we should aspire to do each and every day of our lives.
This verse derives its meaning from verse 7 - which speaks of the things that will make for healing in our bodies and refreshment to our bones. The activities that encourage this boon to our health are not being wise in our own eyes, fearing God, and turning away from evil. But how can God's Word make such outrageous statements! This is not a medical journal! These are the comments I would expect from those who prefer to trust themselves and the present world system than trust the Word of God. Therefore, I'll take a few moments to comment on why walking in wisdom and the fear of God is so healthy.
Peace . . . in a word the benefits of walking in wisdom and the fear of God is that we walk in peace. Study after study has been done in the medical world that trumpets the health benefits of being at peace. The peace that God gives us is far more valuable than the temporary peace achieved by some in this present world. God's peace is valuable both now - and for all eternity. If we choose not to be wise in our own eyes, we will know a peace that Scripture says passes all understanding. It is also a peace that will garrison both our heart and mind in Christ Jesus. The world's peace lasts as long as we have the world's goods - or the good fortune to not have troubles and trials. That poses and very difficult problem - because this world is filled with troubles and trials. God's peace is strong no matter what our current circumstances - because He tells us that all things are working together for our good - when we live for the transformation that He Himself works in us to make us more like Jesus Christ His Son.
Sin, on the other hand, is devastating to our mental and physical well-being. David spoke of the year he was in his sin with Bathsheba as a year when he groaned under the weight of his guilt and shame. He spoke of how his bones were drying up - and his health failed due to the discipline that was upon him from the Lord. We learn from God's Law in the Old Testament an entire system of how to maintain good hygiene and good eating habits. It might fascinate you to know that studies done on the Old Testament Law regarding how one ate - how one kept themselves from disease - and how one was to act in sexual matters - is the healthiest way to live. God's wisdom always yields marvelous results when we choose to walk in it rather than walk in the stubbornness of our own hearts. Truly, we will enjoy healing in our bodies and refreshment in our bones when we do so.