Please be aware that there is a lot of bad information out there. This is normal, people who don’t really understand how or why something works develop habits that work for them, but they really have no idea which of those habits are actually required, and which ones are essentially superstitions, like don’t walk under a ladder, throwing salt over your shoulder, or knocking on wood.
If knocking on wood helps you compile your Arduino programs, feel free, but please don’t recommend it to other people… unless of course you can explain exactly why knocking on wood helps.