This can be health anxiety or phobia. A psychologist/ psychiatrist can find in detail questions. Your information is very less. Ask them to work on both your thoughts and probably you might be having reassurance Behaviour.
Next Steps
See a psychologist trained in CBT for anxiety
Health Tips
Fear of death is very common and treatable you can easily live a life you want with couple of sessions from attained therapist online/ offline.