Yōga Sūtras
Yōga Sūtra 2.33
वितर्कबाधने प्रतिपक्षभावनम्।
When troubled by illogical thoughts or over thinking, counter it by opposing thoughts.