The clinging is unbearable

I’m 31 weeks pregnant with twins high risk preterm labor. And have a 2.8 year old daughter. She’s overly clingy and demands constant attention. It’s like going back when she was 6 months old, if she doesn’t see me before her, or go for a bathroom break, etc. she whines, screams, cries to be with me. When having conversation with others, she interrupts, is in my lap and wants lots of affection. I ache, I have low energy and my patience is short. I give her lots of love and attention but it seems like it’s not enough my blood boils until I explode. My husband says I shouldn’t engage when she cries for attention but she only stops when I yell, if I am soft spoken and nice it’s like she’s taking advantage of it. How can you handle something like this?