Problem with Dota 2

Hi everyone! There is a problem with launching the game Dota 2 (it is native to Linux). Here are the specs of my laptop:

Operating System: KDE neon 5.27
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10
Kernel Version: 6.2.0-32-generic (64-bit)
Graphics Platform: X11
Processors: 8 × 11th Gen Intel® Core™ i7-11370H @ 3.30GHz
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® Xe Graphics
Product Name: ASUS TUF Dash F15 FX516PM_FX516PM
System Version: 1.0

While playing Dota I don’t notice anything, then after a random time the game freezes, the sound loops or remains and the entire environment freezes. (including where). I think it’s because I’m using X11, but in case I click USE Wayland I just get a black screen. Nvidia driver (proprietary, 525)