I think discord is getting pretty buggy on chromium 109/electron 22, which makes sense because it's getting pretty out of date. Even when it does work there are various UI glitches, maybe you should consider using a newer browser or client? The latest versions of Legcord and Vesktop both work with VxKex, and if you don't wanna use VxKex you could try the modified electron binaries at
this repo.
Or if you want to continue using it in a browser the same dev makes an up to date ungoogled chromium fork with Win 7/8 compatibility.