I highly doubt cream would affect your sleep, since it isn’t systemic.
I have had bouts of insomnia for many years, and this has only been rectified by HRT patches.
Advice would be to sleep when you can, even if it’s not bedtime. You can try sleeping at the opposite end of your bed (pillow where your feet would be). Strange, but did help me from time to time. Don’t stay in bed if you aren’t tired, or if you haven’t been able to nod off within the hour.
Try lavender pillow spray. Try being mindful in your body, and then relaxing every muscle from scalp to toes. This does take practice! Try earplugs, and eye masks, or even a light weighted blanket.