Hopefully you’ve read through the archive here - just do a search for “sleep” and a decent fraction of what comes up will offer ideas from more people than are active here at any one time.
I generally sleep through the night unless pouchitis is out of control. I eat lightly (or not at all) after dinner, and go to bed about 5-6 hours after finishing dinner. I take my time emptying my pouch before bed, and I take Lomotil at bedtime (I don’t generally use a bowel slower at other times, since I have to move that stuff through). I take a dose of psyllium before dinner.
I normally sleep about 6.5-7.5 hours. I’m retired, so an alarm clock isn’t a factor. Once in a while I wake up earlier than I like, after perhaps 5 hours of sleep. At that point I may use the toilet and go back to bed, and usually can fall back to sleep and get more like 8 hours total.
Each of us is different. Some people are helped by a small fatty meal (Ike a spoonful of peanut butter) at bedtime. I hope you find a path to a more restful night.