This happens to both me and my partner, more often with me though. I've literally been (from my perspective) lying there awake when they say "you're snoring" and been able to immediately respond "no I'm not" - which obviously makes no sense.
I don't think either of us have insomnia. Both of us do have other mostly-managed health issues that occasionally cause us to stay up with racing thoughts, but the two phenomena aren't really associated with each other. (Also, I think it happens to my partner more because they use unfiltered screens late at night. If I accidentally use a device without blue light filtering it's much more likely for me to be unable to fall asleep. So not "real" insomnia.)
I don't think either of us have insomnia. Both of us do have other mostly-managed health issues that occasionally cause us to stay up with racing thoughts, but the two phenomena aren't really associated with each other. (Also, I think it happens to my partner more because they use unfiltered screens late at night. If I accidentally use a device without blue light filtering it's much more likely for me to be unable to fall asleep. So not "real" insomnia.)