Given your history with drugs, have you considered going to NA for yourself?
I read your post and when you mentioned you had tried heroin, even once, I sensed you still have an inclination towards using and it is never too late in life to become an addict sadly.
Just be careful.
Even if you were able to get past using, wouldn't hurt to check NA out, may even give you better tools for your bf issues as well.