The word "word" here is a metonym for the promise Yahweh gave by speaking words. This clause can be restructured. Alternate translation: "The reason for my comfort is that your promise has kept me alive in my affliction" (See: [[rc://en/ta/man/jit/figs-sentences]] and [[rc://en/ta/man/jit/figs-metonymy]])