GeForce 1660 Ti and linux kernel 5.19

Ever since I upgraded my linux kernel to the newest version on Ubuntu 22.04 the driver Nvidia crashes while loading steam. My driver version is 525.116.04. When I switch the prime-select mode to on demand Nvidia does not respond to anything. In this mode steam launches but no game will start.