Their patients may like eating and wish to eat as much as they want. However, (it/that) is not good for their health.
Either is possible, Taka; the antecedent must be located for each of them, and they both point to 'eat as much as they want'-- with a little thinking on the reader's part. 'That' usually replaces 'it' when the pro-form is stressed.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.