I remember reading David Seamands’ Healing For Damaged Emotions and finding it helpful.
Published in 1981, the Kindle edition is currently available for free.
There is a place for understanding that present inclinations toward negative and sinful activities may point to past experiences which we have not properly dealt with.
It’s not a substitute for biblical obedience as the means for dealing with temptation, but it is helpful.
Gospel eBooks provided the link.
If the book is no longer listed as free the offer has expired.