(Wayland) Dolphin does not open files after Fedora 40 upgrade, "Invalid environment block"

Good day, recently I have upgraded my system to Fedora 40 and after I’ve done that, Dolphin stopped opening any files (and root-owned locations). Instead, it gives the “Invalid environment block” error.

Full error info:

kf.kio.gui: Failed to launch process as service: "app-mpv@1e943844d14749debb761aee2b27c440.service" "org.freedesktop.DBus.Error.InvalidArgs" "Invalid environment block."

This error does not occur in X11 session, only in Wayland.

I am running Fedora 40 with Hyprland.

Thank you.