Disclaimer that I'm on mobile and I'm sorry if formatting is bad

I've had this realization lately that most if not all of my religious practices are rooted in psychosis. I don't want to go into specifics of beliefs and whatnot, but this realization has been very distressing.

I've known I've had some type of psychotic disorder since I was a child. So for a long time, I didn't allow myself to engage with religion or spirituality in fear of setting off my illness. However, I later found spiritual communities online as an adult that resonated with me and seemed to be discerning for psychotic related issues. Well, half a decade later and I can't tell you when my beliefs first became delusional versus sincerely religious.

I'm really not sure what to do at this point. There's a sense of sunk-cost fallacy that doesn't want me to just abandon all of my effort, but I worry that it's impossible to untangle it all. I consider myself a very spiritual person now, so the idea of ignoring all faith based things would leave a hole inside me.

inb4 I have a mental health team and everything. Sorry if I didn't word things clearly. I can clarify in comments. Thanks for reading.