Hello, Welcome to Just Answer and thanks for your question. You would need to get a physician's letter explaining that you need a leave of absence to recover from your problems.
You should see a physician, preferably a psychiatrist, and tell him or her exactly what the problem is, and how it makes you feel. Typical symptoms are insomnia, nervousness, crying, fear (of practically anything including failure), headaches, etc. Most psychiatrists will not even think about a leave for several months. At most they will suggest 2-3 weeks until a medication has a chance to help.