Math is like making a different kind of music. Programming is the same. So your brain needs to compose in a different language for a while. That's ok. You're still able to be creative.
Your professor perhaps muddied the waters here a bit. It sounds like you've found a path that can work for you for now and that's the most important thing. You'll remember your way back to the music if the timing is ever right in the future.
Wishing you all the best on your streamlined path.