A support group might be the thing to try. I'd hate if you acted on these thoughts, except to deal with them constructively. Your value doesn't depend on your usefulness to other people. Do you think someone who has an illness that requires them to be cared for has no value? Being useful is rewarding, but it's not everything, and it's not the only measure of success.
I'm not anti-Christian. I'm anti-stupid.