Something to ponder...
I have a PhD in mathematics and have worked in tech for more than 30 years as a programmer. I went to a Renaissance era university in Scotland which is required by law to require of me a broad education rather than something very specialised. Because I entered the science faculty, as an undergraduate, I had to balance that with something from the humanities and I chose Philosophy, naïvely thinking that it would be easy. Philosophy is in no sense of the word "easy" and not something you can "bluff your way through". In fact, it is more difficult than mathematics and more difficult and arduous than computer science.
I also teach at a university level and would advise young people reading this to pursue, these days, a philosophy education (or a mathematics education) over a software engineering/computer science education.