That experience is what is called Dark Night of the Soul. It make us doubt everything to the point of despair. Then, seeming miraculously, the energy switches to positivity. It's a cycle. Happened to me many many times over the years. Each time the intensity of it lessens to where now such is barely noticeable but it still does occur. The first intensities were quite startling and dramatic. An article someone wrote: https://fractalenlightenment.com/28187/spirituality/7-signs-you-may-be-experiencing-a-dark-night-of-the-soul
"The dark night of the soul is when you have lost the flavor of life but have not yet gained the fullness of divinity. So it is that we must weather that dark time, the period of transformation when what is familiar has been taken away and the new richness is not yet ours." [Ram Dass]