azi – while it is true that this minhag is mentioned in shas or other major sources in rishonim. nevertheless, r’ Maimon the father of the Rambam says that no minhag should be taken lightly. he specifies “even a cute minhag like eating sufganiot” because this is what was done by earlier generations.
I agree health comes first, so if your doctor says no latkes or donuts then you can’t eat. but there is no minhag to eat baked potato-pancakes on chanukkah (unless you really like them – there really is no point in discussing recipes for non-fried latkes.)