I had a miscarriage few months ago. I don't know the reason.

I think it was because I eat papaya or bajra or cashewnuts. Is it true that eating this in the very first month can cause miscarriage