Brave randomly doesn't launch on Ubuntu 22.10

Brave is pretty crap on ubuntu. On my previous system (ubuntu 20.04) it used to crash very often, and sometimes took 7GBs of RAM.