I'm encountering this as well, same specs as above (Fedora 40 Sway etc). In my scenario I'm getting a seg fault on launch (from a terminal) & have reproduced this on both my desktop & laptop.
Haven't tested this thoroughly, but it seems to be related to having my wacom Intuos tablet connected on launch. Seems to work fine if I connect the tablet after launching Inkscape, but so far I get the above seg fault & crash on launch so long as the tablet is connected.
I get the crash with tablet attached on a fresh install as well (including purging both local user config dir & system dir), using either the dnf package or flatpak.