I had a thought which keeps bugging me!!!

Basically last night I was worrying and I had this thought which really bugged me. I thought that humans should die but live a full life and die at a old age. (I have harm OCD) I also thought that sadly my family will die but it happens since it is apart of human nature. I felt no emotion while thinking this though and it is really bugging me. I feel like I’m going to kill someone for no reason and I don’t want too. Can anyone explain this thought to me?