Sometime the thoughts are not in your control. Such repeatitive negative thoughts can be a sign of OCD. Since you can't stop them it is making you depressed. You can get help for it.
Next Steps
Consult me or any other Psychiatrist to evaluate the problem
Health Tips
If correctly recognised it can be treated easily