Hair fall can be due to many causes.
If you have diffuse hairfall, it may be due to telogen effluvium due to some illness or covid in past or due to deficiency of iron, or
thyroid abnormalities.
All this requires evaluation, followed by proper treatment.
Regarding food, just keep eating nutritious food. Rest medicines will take care.