I think companies just need to ensure that the tasks assigned to employees are within normal limits, so that employees don't feel stressed easily due to the piling up pressure at work and chasing deadlines. However, if you have done this, the mental health of employees is still disturbed, then the company needs to be responsible up to a certain point to refer them to the hospital for treatment.