I can relate to your experience.
There appears to be a vulnerability to psychosis in people diagnosed with autism spectrum disorder/Aspergers. I've been told this by doctors. It's also been written about in academic papers. It may not apply to all individuals with an ASD diagnosis but there definitely is a relationship in some people. I'm one of those people. I had a psychotic illness in my twenties.
Schizotypal PD is a differential diagnosis and is considered a part of the schizophrenia spectrum. There are a lot of similarities with ASD. Before I was diagnosed I wondered if I had that personality disorder.
Medication doesn't help much with ASD.
What do you think of the Asperger diagnosis?