You have to manually adjust it.
Remove the potentiometer pieces from both axis and cut the plastic piece which prevents the piece from moving. This way you can adjust it manually until you center it.
I'll also consider the 50k smd potentiometer as mentioned above, it seems like a good option