A "hostile work environment" must be connected to unlawful discrimination based upon race, color, nationality, ancestry, religion, sex, sexual orientation, age or disability. Complaints by other employees about your job performance does not by itself create a hostile work environment, unless you can "connect the dots" to some sort of unlawful discrimination.
That said, if you are diagnosed as depressed, and your physician is willing to certify that your condition is likely to last for the foreseeable future, then you can request "reasonable accommodations" from the employer to help you perform the essential functions of your job, and if there is some reasonable steps that the employer could take that would permit you to perform better, then the employer would have to grant the accommodations, or it would be liable for disability discrimination.
If are considering going this route, then you may want to see a mental health professional (psychiatrist/psychologist) and see if he/she is willing to certify your condition.
Hope this helps.
NOTICE: My goal here is to educate others about the law. I am always available to answer your follow-up questions after you click Accept – however, if you do not click Accept, the website gets paid, and I receive nothing. This is true, even if you are on a subscription plan. So please click Accept, so that I will be able to continue to provide this service for others in the future.
And, if you need to contact me again, please put my user id on the title line of your question (“To Socrateaser”), and the system will send me an alert. Thanks!