I'm not sure how, but I was approved on my first try within five months. I'd only been off of work for five months.
So... you shouldn't have to be off of work for years in order to qualify for SSDI. Have you tried applying? Were you denied? I'd apply and see what happens.