Many writers over the centuries note that Judaism views mental health with the same weight or importance as physical health. These two sources were written by 20th century Jewish philosophers.
Contemporary Halakhic Problems, Vol II, Part II, Chapter XIV Mental Incompetence and Its Implications in Jewish Law 43, by J. David Bleich, 1977-2005
חמשה כחות כלליים שצריכים להיות מושגחים שיהיו שלמים בחיי הכלל והפרט, ואז ימצא בהם הכח המתאים להרחקת כל פגע ולהפרחת החיים בדרך נכונה. הא׳ בריאות הגוף והנפש בתור בעל חיים שלם ועלז בחיים...
There are five general forces that need to be tended to so that they should be whole in the life of the collective and the individual. Then, appropriate force will be found in them to keep all damage at a distance to enhance life in the correct way. The first is physical and mental health leading to a full and joyous embracing of life...
Rav Avraham Yitzchak HaCohen Kook
אולם, ידיעה זו לבדה, כי התחלפות ימי
האהבה וימי השנאה דבר טבעי הוא – בכוחה
להפיג הרבה מן היאוש והעצבות.
The very knowledge of the fact that it is
natural to have good days and bad days
has the power to assuage a lot of despair
and sadness.
Rabbi Shlomo Wolbe, Alei Shur, Vol. I pg. 35
Rabbi Nachman, The Gate of Tears: Sadness and the Spiritual Path
(משלי יב, כה) דאגה בלב איש ישחנה
רבי אמי ורבי אסי,
חד אמר: ישחנה מדעתו
וחד אמר: ישיחנה לאחרים
The Gemara explains another verse in Proverbs: “If there is anxiety in a man’s heart, let him quash it [yashḥena]” (Proverbs 12:25). Rabbi Ami and Rabbi Asi dispute the verse’s meaning. One said: He should forcefully push it [yasḥena] out of his mind. One who worries should banish his concerns from his thoughts. And one said: It means he should tell [yesiḥena] others his concerns, which will lower his anxiety.
Gemara Targum Mishlei 12:25
