So basically you have a full looping border made out of the red circle I marked in this example. the blue llines mark where tiles would loop. So you can have the vertical tiles loop without any issues and the middle part of the horizontal tiles without any issues.
The light blue lines mark where the two "outer" tiles of this horizontal line connect.
Basically, you can connect the two curves on the sides to form a circle:
And have two ways to have the horizontal part loop, light blue to light blue or blue to blue:
The inner edges I have not talked about is because the vertical parts with their edges can only be connected with the "light blue" connection, but if you want to go from vertical blue to horizintal blue, you need those four extra edges (marked them with hot pink):
With those, as said, you can connect the blue looping tiles only:
The other four I did not mark are inner edges, to connect the blue vertical tiles in the other way.