XID 13 error

I have Kubuntu 24.04 and an Nvidia GeForce 3080 12 GB card. I have driver version 580.95.05 I am getting this error with Total War Warhammer 3:

$ sudo dmesg 
[215689.261510] umip: Warhammer3.exe[230521] ip:14d883126 sp:119478: SGDT instruction cannot be used by applications.
[215689.261514] umip: Warhammer3.exe[230521] ip:14d883126 sp:119478: For now, expensive software emulation returns the result.
[215689.261973] umip: Warhammer3.exe[230521] ip:14a2d4889 sp:1188f8: SGDT instruction cannot be used by applications.
[215689.261975] umip: Warhammer3.exe[230521] ip:14a2d4889 sp:1188f8: For now, expensive software emulation returns the result.
[215689.262072] umip: Warhammer3.exe[230521] ip:14652e2a3 sp:1188f0: SGDT instruction cannot be used by applications.
[215737.126707] NVRM: Xid (PCI:0000:01:00): 13, pid=230521, name=Warhammer3.exe, Graphics Exception: channel 0x00000099, Class 0000c7c0, Offset 00000000, Data 00000000

The game crashes immediately upon load. Please advise on how to fix this. Thank you.

This is a very endemic bug right now, there are two megathreads tracking this that you might want to take a look:

There isn’t really much of a fix user-side for these right now I think, other than enduring the pain and constantly restarting the game when it freezes with this. I’ve noticed that for some games the bug is more frequent in specific areas, so if that’s also the case for you you might also want to avoid those areas. I really hope they manage to fix this once and for all someday.