Totally spitballing here, but...is it possible the switch body of the original grounds to the door frame somehow, and the new one does not? I doubt it, as most switches have plastic bodies, but like I said, spitballing.one.
Any ideas? Looked inside the liftgate trim and all the wiring looks good as new. No idea.