PPD fueled by baby not sleeping?

I’ve noticed I feel completely fine & even somewhat happy on days where my daughter goes down for naps & bedtime easily, naps for a long time, & wakes up less throughout the night. When I’m trying to get her to nap or go back to sleep at night I sometimes start full on sobbing & contemplating suicide. It’s the only thing that really triggers me. It’s seriously my kryptonite