Glass poop 😩

Ok so I am lactose intolerant but I have not been doing so well lately. I was constipated for a while & now I try to poop & it feels like glass coming out. I have not been able to comfortable poop for weeks now.

What can I eat to soften my stool?? Sorry for the TMI.