Windows is a wonderful OS but you need to be constantly wary of what you are installing on your PC and where the downloaded bytes are coming from. Having a good anti-virus is a good idea, in fact the one that comes by default with Windows (Defender) is good enough. Having a package manager like chocolatey to manage your installs is also a great idea if you are a beginner.
Linux on the other hand is even more superb, it gives you a lot of freedom and flexibility but you need to step into the shoes of power users for that. I'd suggest you to try windows for a few months or so, then switch to linux once you have enough knowledge.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.