Sha'irullah
رسول الآلهة
My life parallels your story in some ways, although college did not change me. I avoided 4-year dorm life college and many other things in order to keep from being influenced. I did complete community college, but I carefully avoided Philosophy classes, since I suspected them of indoctrination. I also avoided anyone who could pull me away from the truth that I knew. It was all for nothing, because I embraced too strongly the (false) teaching that a human being could be completely honest or could be in any way compatible with pure truth or could even receive truth in its purity. Such a belief inevitably draws one into an endless outwardly spiraling search, since truth itself depends upon context. The outwardly spiraling search caused me to question all things, always pursuing a chest of gold I could never find. It overturned my beliefs in the process, however it offered nothing to replace them.
That is because the search for 'Truth' is unending for a human. Only the context will change for the seeker, contexts like layers of an onion of infinite size. Searching for truth you will find that your truth is false until you reach the next layer of context in which it will be truth...then false again outside of that context. This was what Godel found out mathematically and which he did not like, because he was like me. He believed as I once did that a human being could know 'Truth'. I'm not saying that truth doesn't exist. I'm saying that people are not equipped to know it.
The way that I 'Balance' my head and my heart now is that I realize my head is much smaller than it feels. I allow other people to influence me, directly, as if their judgment were equal to mine, like they have a vote in what I think. Actually that makes sense, because it is true. I don't let go of my own judgment, but I try to be reasonable about the reality that my mind is very small (without announcing it). I'm trying to recognize that I'm not the only person with a brain.
Is your faith so weal that mere philosophy classes can shake it? I would embrace this head on to acquire wisdom. The acts you did were essentially actions to maintain a state of ignorance.
If there is knowledge to be learned, learn it. Avoiding it over dogma issues is highly negative. Such things should be embraced to permit one to have a stronger spiritual state