Some people who used Modafinil have reported mental health issues like depression that manifests in fatigue and loss of energy. Such side effects very rarely turn severe. In most cases, mental health issues are more due to related underlying conditions than the drug itself.
Modafinil's mechanism is also unique. Thus, certain studies have also proved that modafinil can be coupled with other antidepressants for better efficiency.