Anything that requires self discipline will ultimately aid in any spiritual walk. Also, most the spiritual leaders, if not all, fasted and preached fasting. It cleanses the body and allows it to be more sensitive to things most are numb too. You don’t have to have a spiritual mindset, but whether you are trying to achieve spiritual progress or not, you inevitably will, in my opinion.
Dry fasting brings you into connection with your body which is knowing yourself. So it is inherently spiritual because the body and soul are not separate. There is nothing bad about being spiritual - it sounds like you’ve experienced some examples that left you with a bad impression
Does not necessarily answer your question but:>In double-blinded experiments with men, intranasal oxytocin increased feelings of spirituality that persisted for a week, and these results were moderated by certain oxytocin-related genotypes.
https://www.jwatch.org/na42551/2016/10/21/does-oxytocin-contribute-spirituality
Water restriction might increase oxytocin:Intermittent drinking, oxytocin and human health