You have two options (the third would be for ZWO to prevent this by keeping count of the accumulated rotation - this has been requested here multiple times, it doesn't seem like it is going to happen). There are USB cables with magnetic coupling, including some that are able to swivel and turn. The other option is to attach the power bank to the body of S50 and use a short USB cable, this is how I power my telescope, I 3D printed a shell that fits over the S50 body, includes a USB power bank support and a support at the top of the S50 for a second tripod when using it in EQ mode from very low latitudes.