Mental ailments

According to Ayurveda shastra, one gets afflicted by mental ailments such as insomnia, sorrow and suffers loss of memory –
when he fails to respect the ones who deserve to be respected or ridicules them
when he does not get what he expects
when he loses interest in life