In the first half of life, sometimes you have to sacrifice your health for wealth. Avoid using the money you earn to buy back health for the rest of your life, which is fruitless. A healthy body itself is an intangible wealth.
Money is not the only way to solve health problems. Many health problems cannot be solved by money. For example: quit smoking, don't eat junk food, learn to breathe, massage, adjust mood and so on. These don't cost money.