This is correct. Dangling modifiers are often used by learners due to the lack of knowledge of the English syntax, or due to transfer from their native languages. This occurrence however is not difficult to fix.
The tied one is the opinion for me
Hopes it helped
Chronological order. Hope this helps!
B- She has had the life sucked out of her by an insect living in her pillow