Being rejected by a friend after unmasking/rejected by a friend because of needs

Hello.

So, I've recently been rejected by a very close friend of mine, and it seems that it was either because I'd recently unmasked in front of said friend, or because of my autistic and mental health needs in general. Has anyone else experienced this or something like it? If so, how did you deal with this?