We all have different tricks of how we get some rest. I usually do the same bit of what you did. I turn off my cellphone and try to sleep with a pillow over my head.
I did know that ADHD keeps you hooked on one thing if it's not completed, not sure about autism. Both need a lot of care though I presume.
Take care of yourself and have a great day ahead 💕