Get a sleep tracker and start identifying things that are affecting your sleep, and if necessary get a professional sleep study.
It could be as simple as your partner’s bodyheat making you uncomfortable. It could be your mattress. It could be your brain isn’t fully shutting down.