I used https://www.sleepcycle.com/ for a number of years while suffering sleepless nights.
It seemed accurate...but I had no way of verifying the quality of my sleep. I have heard this is difficult to do.
Eventually I got sick of paying the subscription and agonizing over my sleep data.
I spent probably six months practicing sleep hygiene (consistent schedule, limiting screen time, working out, etc) and removing myself from stressful environments. I was eventually was able to return to a decent schedule.
I also found speaking with a psychologist to be helpful here.
Hope your sleep improves.