Back on topic: Since I’m not sure how you handle the coordinates in the material, I cant really help you further. However, it should be quite simple to make this shader repeat properly. Maybe look if you can simplify parts of your shader. Hopefully you find the bug that causes the distortion.
Otherwise, post your shader network in the comments - or better - update your question, so we can have a look at it.