Postpartum insomnia

How do you deal? I’ve tried melatonin, benedryl, writing down notes, meditating, working out, taking magnesium, reducing screen time... sleeping about 4 hours a night. PPA AND PPD is now in full force, I think because of the lack of sleep.