In addition, infinitives can be used as attributes. Healthier is a noun. How can we attribute it?
Eating more healthy food is also a mistake.
Eating healthier food should
Eat more healthy food. Health is an adjective before food.
You can ask me again if you have any questions.
I wish you success in your study.