A vulnerable young Lancashire woman would not have taken her own life if she had been treated in a “loving” way, a court has heard.