That is almost EXACTLY what I have
Yours is slightly different in that it has ribs around the ends of the plastic adapter where mine is flat.
My failure is on a front jack and I have been using in manual mode which really has not been too bad since the fronts go up/down so little (compared to the rear). That extra 5-6" lower makes a big difference. I have had too many other projects on the trailer to get back to this one. When I do my plan is to see if I can mark the motor, coupler, and jack to see if there really is slippage occurring.
As to making one from pipe... this may not be as easy as it sounds. The jack end used a D for drive and the motor end used a square drive.
If it is slipping (or if yours really is just stripped inside) I would not hesitate to get the part from a dealer and replace myself. Really only takes removing two nuts to get the motor out and replace that part. Easy peasy.