Existential crisis

An existential crisis is the feeling that is experienced when thinking about life itself being without any meaning at all. It also happens when the thinking involves a person's own death while all alone and possibly miserable.