Hi kevin213!
Thank you for reaching out to the Lenovo Community!
I'm sorry to hear that you're experiencing issues with your Legion 170W GaN adapter and your Lenovo Legion Pro 5 16IRX9.
There are two USB-C ports on your laptop model and only one of them supports charging. Ensure the charger is connected to the port with "USB-PD" logo on the back. Also, as this port is not designed as the primary power input, it may not charge when laptop is operating so I advise to try it when device is on sleep mode or power off.
Also, ensure that the adapter have the any of the power ratings listed below:
20 V, 4.75 A
20 V, 5 A
20 V, 6.75 A
20 V, 7 A
I hope this helps! If you have any further questions, feel free to ask.
Best regards,
Hector_Lenovo