Hello Lennon,
If you're using a rechargeable battery pack make sure it isn't loose. Also the cable you're using may not be optimized for xbox controllers try using a different cord to plug it in. Also, once the controller is connected via usb that is the main source of power until disconnected.
If this resolved your issue mark as "anwered"
Best regards!