Nvidia-dkms 545 prime-run doesn't work for igpu on optimus laptop

Hi!
I hope it’s the best place where to report a problem with nvidia drivers.
Recently I’ve installed vanilla Endeavour OS which comes with latest nvidia-dkms-545 driver.
Additionally, i’ve installed optimus-manager to easily switch between modes.

I expect that prime-run will work both in integrated mode and nvidia/hybrid, but it’s not with version 545.
However, it works great with version 535.

Speaking about v535, in integrated mode, when i run prime-run unigine Vega card is utilized.
And nvidia-smi can communicate with nvidia card.

$ optimus-manager --status
Optimus Manager (Client) version 1.5
Current GPU mode : integrated
$ nvidia-smi 
Wed Nov 22 23:33:27 2023       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.113.01             Driver Version: 535.113.01   CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 2060        Off | 00000000:01:00.0 Off |                  N/A |
| N/A   36C    P8               4W /  90W |      0MiB /  6144MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|  No running processes found                                                           |
+---------------------------------------------------------------------------------------+

$ grep . /sys/bus/pci/devices/0000:01:00.0/power/*
grep: /sys/bus/pci/devices/0000:01:00.0/power/autosuspend_delay_ms: Input/output error
/sys/bus/pci/devices/0000:01:00.0/power/control:on
/sys/bus/pci/devices/0000:01:00.0/power/runtime_active_time:44666718
/sys/bus/pci/devices/0000:01:00.0/power/runtime_status:active
/sys/bus/pci/devices/0000:01:00.0/power/runtime_suspended_time:0
/sys/bus/pci/devices/0000:01:00.0/power/wakeup:disabled
$ xrandr --listproviders
Providers: number : 1
Provider 0: id: 0x44 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 2 associated providers: 0 name:modesetting

Hybrid mode:

$ optimus-manager --status
Optimus Manager (Client) version 1.5
Current GPU mode : hybrid
$ nvidia-smi
Thu Nov 23 08:37:47 2023       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.113.01             Driver Version: 535.113.01   CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 2060        Off | 00000000:01:00.0 Off |                  N/A |
| N/A   36C    P8               2W /  90W |      5MiB /  6144MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A    248293      G   /usr/lib/Xorg                                 4MiB |
+---------------------------------------------------------------------------------------+
$ grep . /sys/bus/pci/devices/0000:01:00.0/power/*
grep: /sys/bus/pci/devices/0000:01:00.0/power/autosuspend_delay_ms: Input/output error
/sys/bus/pci/devices/0000:01:00.0/power/control:auto
/sys/bus/pci/devices/0000:01:00.0/power/runtime_active_time:57658219
/sys/bus/pci/devices/0000:01:00.0/power/runtime_status:active
/sys/bus/pci/devices/0000:01:00.0/power/runtime_suspended_time:0
/sys/bus/pci/devices/0000:01:00.0/power/wakeup:disabled
$ xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x44 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 2 associated providers: 1 name:modesetting
Provider 1: id: 0x28c cap: 0x2, Sink Output crtcs: 4 outputs: 2 associated providers: 1 name:NVIDIA-G0

With nvidia-dkms-545 i receive such error in integrated mode:

$ prime-run glxgears
X Error of failed request:  BadAlloc (insufficient resources for operation)
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  5 (X_GLXMakeCurrent)
  Serial number of failed request:  0
  Current serial number in output stream:  36

Yet nvidia-smi is working fine.

HW specs:
ASUS TUF Gaming A15 FA506IV
8-core AMD Ryzen 7 4800H with Radeon Graphics
AMD Radeon RX Vega 6
NVIDIA TU106M [GeForce RTX 2060 Mobile]

Same happens with Lenovo Legion 5
NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q]