Is this enough for you to solve the problem or tell me some ways to find out the error. Thank you.
Here are some observations on the problem, with the information available so far:
The error 19 means "No such device". The kernel has failed to see the usb hub.
The hub is likely an internal usb hub rather than the usb port on the machine.
The question arises as to how recent is the laptop?
If it's very recent, the firmware may not yet be available for linux. The linux developers take some time to develop what is needed if the manufacturers don't supply the relevant information. That it's a firmware issue is a speculation.
It appears from similar problems online that the 7000 series Ryzen needs to be using a 6 series kernel. That information is not yet available here.
Since the problem with the keyboard and mouse occur:
after the grub bootloader
then it's possible to interrupt the booting, see if the keyboard works, which hopefully it does, then boot to text mode and try to work some repairs.
Specifically, if the machine can be booted to text mode to runlevel 3, with the keyboard working, then hopefully the system would bring up the network so that the user can download the latest firmware and most recent kernel available from the command line to see if that all resolves the matter.
This may seem like a bit much for a "new user" to do, but if you think you can follow instructions very closely, it may be successful. It may not of course, depending on what the underlying problem is.
Otherwise you can consider installing a distribution that has a kernel version that is greater than 6.0, since my reading on the matter suggests this is significant in such cases.