RPI5 electron app with webview after navigating throws: ERR_INSUFFICIENT_RESOURCES and app crashes

Hi,
electron app runs webview in kiosk mode on raspberry pi 5.
I use xserver from GitHub - balena-labs-projects/xserver: A simple X11 server block with modified configuration for RPI5

Webview opens next.js website and it works normaly. The app crashes when I go to a different site and go back to the main size

electron ver: 29.1.4
node ver: 18.14

Can you help me troubleshoot?

thank you