https://www.google.com/search?client=firefox-b-m&sca_esv=a6b.....
I tried that as last resort before going to GP but luckily this method worked for me. Later when I left that toxic place the sleep came back on its own.
There is a difference between your sleep pattern affecting important aspects of your life and your sleep pattern not following a published metric.
I mean if insomnia is causing you to fall asleep while driving see a doctor. If worrying about insomnia is the most salient effect, not worrying is an option. Unless you need a hobby, and some people do.
Our life patterns change with age. [1] Then change again with more age. Sometimes we need to go to a doctor, sometimes we don't. Good luck.
[1]: Looks like you joined HN more than ten years ago. That's enough time for things to change.