Building it locally would cure the defect how?
Well, there's several advantages to using ports over pre-compiled packages.
For starters, no need to maintain your own repo - a given snapshot of FreeBSD ports will pull in a given snapshot of upstream projects, apply FreeBSD patches, and compile things no problem. It's the exact same process that the FreeBSD project uses when creating the official repos, BTW.
Next, pre-compiled packages are created with a pretty conservative set of options, so they end up missing features I like - sound systems like ALSA/sndio/JACK/PulseAudio/PortAudio/Pipewire come to mind as examples of stuff that gets turned off by whoever creates the official repos. And I've seen plenty of posts on these Forums where people try to resolve issues created by the 'missing a correct sound system'. Standard advice is to recompile the port with the missing sound system turned on - but that is problematic if the version of your copy of the port doesn't match the version that you installed as a pre-compiled package. Why exactly is it problematic? Because failing to match versions will send you straight into dependency hell. I avoid all those headaches by compiling stuff from scratch. 3 straight days evert couple years.
Next, there's no real need to upgrade just because a newer version of the package came out. It's like trying to live in a house whose foundation is built with the very latest version of concrete. Are you gonna pack up and move every time somebody improves a structural house component like concrete or plumbing? Abstract thinking about the problem applies here, as well.
And last, if you do a bit of research, you'll discover that recently, there have been issues with the
pkg(8) infrastructure - people are complaining on the Forums about
pkg(8) not finding the packages that the official repo maintainers supposedly prepared. Some of that is misconfig on your own machine, some of that is misconfig on the other end of the wire. There's a LOT of details to get right for the whole system to function as documented.
Not to mention that pkg's dependency resolution mechanism sucks - a famous example from these Forums is how it tries to remove
www/firefox, and that recurses into dependency hell.
I guess the real defect is the habit of upgrading every time there's a new version, just because. I personally always ask myself if the upgrade is really necessary. For example, I do need Firefox to work. But I know that trying to upgrade just that is gonna result in a train wreck that makes a clean reinstall of the entire FreeBSD system an unavoidable chore. So my strategy is to hold out until Firefox says, "No more, I refuse to work with today's Internet", and starts messing up on sites that it normally did an acceptable job on. By then, the copy of Firefox that I have installed - it's horrendously out of date, and needs to be upgraded. So that's a good time to do a fresh system install. So I grab the freshest available FreeBSD release, the freshest snapshot of ports, and spend a few days compiling my way back into KDE.
And if I catch wind of neat new features - Well, I can just spin up a VM and play with that.