Switch runs very slowly while docked,

Newbie here. Can anyone help me with this issue? My switch is a couple years old now. Had to switch out the left joycon rail and after I switched it out, my switch runs really slow when it’s docked but perfectly fine when in handheld mode. It’s otherwise well-maintained.