Can't build project on Linux

I created a sample project, I tried to build it but is showing this error:

X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  18 (X_ChangeProperty)
  Resource id in failed request:  0x800010
  Serial number of failed request:  178
  Current serial number in output stream:  186

I found out in this thread that there are more people with the same issue.
I tried other older Defold versions and It worked perfectly, the issue started in version 1.9.7.

To reproduce the error:

  1. Open Defold version 1.9.7 or greater.
  2. Create project and open it.
  3. Go to the menu, select project then build. The error will show in the console

Expected behaviour:
Build the project correctly like with any project.

Defold version
From 1.9.7 to 1.10.4

Platform
CachyOs GNU/Linux (arch) kernel 6.16.1 x86_64

Are you using Wayland?

Yes, but I tried x11 too and had the same issue.

I changed the desktop environment to xfce from gnome and I can build the project perfectly in any version. Honestly I don’t know why that happens.

Ok, so it works in xfce?

Yes, it works perfectly in xfce.