Hi, you need to learn how to put a stop over your thoughts and also add positive perspective while thinking. Over analysis of things in a negative manner is more of an issue than just over analysis. Try meditation to control your thoughts. Also purposefully add positive perspectives and say 'STOP' out loudly whenever you get overwhelmed with these thoughts.
Next Steps
Find a counseling psychologist for further help