The ribbon cables in your Joy-Con do not relate to the Gyroscope, so they're unlikely to have any relation in this matter, unfortunately. The Joy-Con controllers employ IMU (Inertial Measurement Unit) chips from STM to deliver motion control functionality. For the case of the right Joy-Con controller, my research indicates that the circled chip in the image below is the relevant sensor:
Before you pursue anything intrusive, however, I'd like to suggest that you clear away any sources of interference sitting between your controller and console and attempt to calibrate your Joy-Con's motion controls. From the Home Menu, this can be done by entering your System Settings, scrolling down to Controllers and Sensors, then selecting Calibrate Motion Controls from the available options. Follow the onscreen instructions and see if the motion controls work normally. If not, feel free to inspect your board for damage and troubleshoot accordingly.
I hope your issue is resolved in a swift and convenient manner.
crwdns2934105:0crwdne2934105:0
crwdns2934113:0crwdne2934113:0
crwdns2915270:0crwdne2915270:0
crwdns2889612:0crwdne2889612:0
4