afraid of dying as an old lonely woman

i always had this fear that i will end up so alone in life that i will die so lonely, broken, and just miserable in a way that i wont be even acknowledged by anyone to feel sad for me even after im gone. every day im coming closer to this realisation that i might actually die old and lonely. i already spent years of life in such awful loneliness in a way i cant regain anything, and that i have only few years to enjoy my youth because by then i will be busy surviving, and that would be just my whole mean. im getting paranoid about this everyday, and i want to isolate myself from everything at this point and maybe just erode away like that