It can be a complicated thing to maintain, expecially across neurotype lines.
If those are the relationships that are failing, and you are making any level of effort toward them, then its probably worth taking a deeper look at to uncover what is at play and whether you should continue to bother.
Internalizing the relationship challenges to define yourself as a bad person sounds like it might be internalized ableism. Number one characteristic across all the gradient of autism is social difficulties. That's your disability, and you can/should forgive yourself for shortcomings there. No sense in being hard on yourself for the cards you've been dealt and for working within limitations that others don't.