Likely a deverbal from טרייסטן (treystn) in imitation of German Trost, rather than directly inherited from Middle High German trōst, which would have yielded the forms טרױסט (troyst) or טראָסט (trost).
טרייסט • (treyst) f