Obsessive thoughts

Has anyone had issues with not being able to turn off your brain when negative stuff pops up? I have been dealing with it for a long time but just now coming to terms it’s real and affecting my life. I just would like someone to maybe talk to who has or is going through the same. Thanks