Your thoughts must be having some link to some situations or past event due to which it gets triggered and keep repeating. Start sharing your feelings towards your loved ones and accept the fact that people are here and they will die but enjoy your life with them as they all are there around you.
Next Steps
Would suggest you to seek help either online, telephonic or in person for good results.