I don't mean to diagnose you with a mental illness from a passing comment in an HN thread, but your footnote rings the same bell my partners (diagnosed) anxiety does. They were prescribed xanax for it which helped but made them very lethargic, so they stopped.
Since you were prescribed ritalin at one point i'm guessing you went to see a mental health professional, maybe try to get a second opinion?
Other things they find effective (that don't require a diagnosis) include breathing exercises (flavor of the month is a free(no ads!) app called RespiRelax+), grounding exercises (name 3 things you can touch, etc) and indulging in dopamine activities (for them it's gaming and cooking, for you it might be sport and model aircraft). Last point is not really going to help you sleep but they find that if they can't sleep because of anxiety, it's better to try to forget about it by doing something they like rather than lay awake in bed.
Since you were prescribed ritalin at one point i'm guessing you went to see a mental health professional, maybe try to get a second opinion?
Other things they find effective (that don't require a diagnosis) include breathing exercises (flavor of the month is a free(no ads!) app called RespiRelax+), grounding exercises (name 3 things you can touch, etc) and indulging in dopamine activities (for them it's gaming and cooking, for you it might be sport and model aircraft). Last point is not really going to help you sleep but they find that if they can't sleep because of anxiety, it's better to try to forget about it by doing something they like rather than lay awake in bed.