If it is any 'comfort' to you, I've made the same mistake myself. = It might give you 'comfort' to know that I've made the same mistake myself.
When we went out for drinks together, I realized we were getting 'too close for comfort'. [=we were getting closer than I wanted to be]
Knowing that I can rely on your help is a 'comforting' thought. = It is 'comforting' to know that I can rely on your help.
(..) Anastasia, I vow to love you faithfully, forsaking all others. I promise to love, to trust and to respect you. To comfort you in times of need and keep you safe. All that I have is now yours. I give you my hand and my heart for as long as we both shall live. (..)2018 Fifty Shades Freed