previous tenant bills debt left to me

i contacted the energy company and they said i just need to send proof of my tenancy agreement to them . i sent that and now they’re saying i need to contact the landlord and ask for the previous tenants details . i thought this was weird because shouldn’t they be doing that ? why would the landlord give me another persons name lol.. anyways landlord told me the exact same thing, that they are unable to give me that . that the energy provider must contact them instead

i just gave them the landlords email so they can contact them.

am i safe ? i feel like my life is full of bad luck and this is bound to end badly for me. the debt is for £812 and the letter was threatening to add £20 fines every 2 weeks if it’s not paid

it is also a housing association i’m renting with