It depends on an individual. The general Islamic guideline is that we should eat what is lawful and good. Something that will not expose our health to danger.
The forty days is a recommendation and not compulsory. It’s definitely beneficial for those who are able to do it