System freezing when launching executables directly

Since the last update I have the following issue:
When launching an executable from the desktop or from dolphin via double click or pressing enter, the entire system freezes.
Sometimes it will unfreeze after a bit and launch the executable, sometimes it remains frozen.

Launching the same executables from the same location via terminal does not cause the problem.
Launching other programs from the application menu does not cause the problem.

I tested this on two different systems and the behavior is identical.

As an example, I can 100% reproduce the problem with the current version (4.2.2) of godot engine.

Added f40, workstation

Possibly related to kwin. Journalctl lists countless messages similar to:

kwin_wayland[2286]: kf.config.core: "KConfigIni: In file /home/michael/Desktop/Godot_v4.2.2-stable_linux.x86_64, line 29269:" Invalid entry (missing '=')

It looks like KDE is trying to parse the executable as a .desktop file.

Creating a .desktop file for the executable allows to launch it with no problems.

That would be worth reporting in the kde bug tracker,