I welded a 19mm nut on one [...]
That's what I did, be it a 17mm nut. Personally, this is the kind of part you want OEM, not aftermarket. It's long ago, but I remember reports on such an aftermarket bolt where the valve moved the other way or not at all...
Damaging the OEM bolt can be prevented. Tap it with a hammer before loosening it, ideally with a socket on a T-handle. Don't overtighten it ofcourse.
Tip: especially O-rings that come with aftermarket oilfilters can resist staying in the groove during reassembly. When you buy an oilfilter, have that O-ring under a heavy book in the months before you need it. I have had good results with the Encyclopedia Brittanica.