It is somewhat unlikely that the Ryzen’s higher speed causes a problem. The computer communicates to the STLink via USB 2 and the USB speed does not change.
Can you provide a more detailed error description: What error message do you get? What actions do you execute that lead up to the error?