Baby only sleep longer if she has a pillow

So my baby only sleeps comfortably if she has a pillow under her head. She can go for hours. But not me 😖 I get so anxious.

Any people with similar situations? Any solutions to this problem?