340 nvidia driver installation problem

Take a look here:

It looks like it is for 5.4 and 5.10 kernels. Maybe something there will be helpful. I apologize if I do not fully understand the issue.

It is odd that some commenters on the AUR page say that the 6.2 patch works.