Strange shadows on mesh following curve
Delete the faces on the beginning and the end (left and right seen from image 2) of the parts. It needs to be open at the ends for the parts to merge. Play with the merge distance, make it larger until it snaps. I can see from image 2 that the parts did not merge causing shadows in between. You need an equal amount of  vertices on begin and end to make it snap.