The bug-report.log is from a 5.4 kernel where the 510 driver worked fine. Telling by the kernel name
5.16.0-051600rc5-generic
you tried to install an incompatible kernel built for 22.04 so the driver doesn’t compile. Please remove the incompatible kernel, return to the stock kernel and if you need a current kernel, please use the liquorix ppa instead.