If you’re concerned about factors associated with mental illness, you don’t need to worry about hereditary factors.
However, it’s important to clarify that hereditary factors can play a significant role in mental illness. If the question is framed such that you are specifically asked not to worry at all, it might be misleading. Other factors like virus infections, physical factors, and early experiences are also relevant. Please check your options and context carefully.