USB-A port fails sometimes

I am using a Lenovo L14 laptop with kernel 6.1.31-2-MANJARO x86_64. There are two USB-A ports on the laptop, the one on the right is causing problems. When I plug in a Sandisk USB drive, it is only recognised sometimes. I have dmesg -w running as I plug in the USB drive.

Sometimes I get the following output and everything works.

[10211.301406] usb 6-2: new SuperSpeed USB device number 12 using xhci_hcd
[10211.318007] usb 6-2: New USB device found, idVendor=0781, idProduct=5581, bcdDevice= 1.00
[10211.318013] usb 6-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[10211.318016] usb 6-2: Product: Ultra
[10211.318018] usb 6-2: Manufacturer: SanDisk
[10211.318020] usb 6-2: SerialNumber: 4C531001401108102233

At other times I get the following output and nothing works.

[10203.254263] usb 5-2: new full-speed USB device number 116 using xhci_hcd
[10203.384319] usb 5-2: device descriptor read/64, error -71
[10203.621044] usb 5-2: device descriptor read/64, error -71

I don’t understand, why is it sometimes usb 6-2 and usb 5-2? usb 6-2 always works, usb 5-2 never works.

Output of lsusb

Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 002: ID 0489:e0cd Foxconn / Hon Hai MediaTek Bluetooth Adapter
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 06cb:00bd Synaptics, Inc. Prometheus MIS Touch Fingerprint Reader
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 13d3:56fb IMC Networks Integrated Camera
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Output of ls -a1 /sys/bus/usb/devices/

.
..
1-0:1.0
1-2
1-2:1.0
1-2:1.1
1-2:1.2
1-2:1.3
1-2:1.4
2-0:1.0
3-0:1.0
3-4
3-4:1.0
4-0:1.0
5-0:1.0
5-4
5-4:1.0
5-4:1.1
5-4:1.2
6-0:1.0
usb1
usb2
usb3
usb4
usb5
usb6

Hi there,
Are you running any power management software like TLP?

Hello, yay -Qs tlp shows tlp is not installed.