I'm still struggling with Medi's nights

. She'll be five months old in a few days time. She is ebf and still has two night feeds (no df as she never woke enough to take much). The first feed is about midnight and she will suckle slowly, go back to sleep, and wakes three hours after I put her down. I think this waking is a bit of a habit and I intend to try to push it a bit later. The second feed is the problem. She's hungry because the first feed wasn't very good, but she doesn't go back to sleep properly. Either she's awake for two hours or she goes back to sleep for 45 minutes, poops, and is then wide awake. She doesn't cry at first. She's just awake, and playing. Eventually she either goes back to sleep on her own, or she will cry and I'll pat her back to sleep.
She naps well and puts herself to sleep no problem. Her naps are a bit all over the place at the moment, some days it's 2 x 90 minutes ( I wake her at 90 minutes) or maybe 1x90, 1x60, and 1x30 minutes. I suspect within the next week-10 days she will be properly on two naps.
It's really getting me down. Like seriously getting me down to the point that I don't really want to be around her some days

.