He is haunted by a demon, a demon against which he feels powerless, because in its first manifestation it has no face, no name, nothing; and the words, the poem he makes, are a kind of exorcism of this demon.
If the denial of death is self-hatred, as it is to deny our freedom and live in fear of death (which is to say, to live in a form of bondage), then the acceptance and affirmation of death is indeed a form of self-love. But I'd want to make a distinction between a form of self-love which is essential to what it means to be human, and a narcissism of self-regard, like Rousseau's distinction between amour de soi and amour propre, self-love and pride.