Yōga Sūtra 2.34
वितर्का हिंसादयः कृतकारितानुमोदिता लोभक्रोधमोहपूर्वका मृदुमध्याधिमात्रा दुःखाज्ञानानन्तफला इति प्रतिपक्षभावनम्।
Overthinking (illogical thinking), violence and other defects, whether done directly, performed through others, or performed through influence; under the influence of greed, anger, or delusion; whether mild, moderate, or intense; results in endless pain and ignorance. Hence counter it by opposing thoughts.