Co sleeping- trying to break habit


So my daughter is 4 months old and she’s started getting into a bad habit (and so have we) of just falling asleep on the couch while I’m holding her at night. And my husband and I are so worn out that he don’t realize we’ve fallen asleep while holding her. It’s like a recliner couch so there’s no chance of me hurting her. But she likes laying leaning up and the warmth. Whenever we do try to put her in her pack n play, she wakes up immediately and it takes a while for her to go back to sleep. We put one of those wedge pillows in her pack n play but that hasn’t helped any. We just don’t know what to do anymore. Does anyone have any advice?