Hello Gaston,
as all lock motors are wired in //, this can only come from wiring (in door's hinge ?) or a defective motor in the lock itself...
BRs, Bernie
If someone here helped You fix -or better, understand- your issue, hit the thanks icon @ bottom right corner, it's free and makes us feel helpy ;-)