Recent projects crash Kdenlive while loading them

I have the Flatpak of Kdenlive 26.04, and when I open recent complex projects, Kdenlive crashes while loading them with this error:

::::::::::: connecting timeline:  QUuid("{28b00899-2d10-419b-99d1-855504237474}") , DUR:  9914
qt.core.qobject.connect: QObject::connect(AudioDevInfo, Unknown): invalid nullptr parameter
qt.core.qobject.connect: QObject::connect(AudioDevInfo, MediaCapture): invalid nullptr parameter

This probably has to do with me installing and uninstalling many different versions of Kdenlive the past two weeks, but currently this is the only one on my system. It does load simple projects, those that merely stitch together clips. I’m not sure how to troubleshoot this and would definitely appreciate help.

It turns out that this gets fixed when you start a new project, immediately close without saving, then restarting and opening the old project. But I’m not marking this as fixed yet, since it’s not a permanent fix.

Okay, it doesn’t work anymore.

When using the AppImage instead, well first of all I get the error /tmp/.mount_kdenlioiEHLn/AppRun.wrapped: /lib64/libQt6Qml.so.6: version Qt_6_ PRIVATE_API' not found (required by /tmp/.mount_kdenlioiEHLn/AppRun.wrapped), but it does run when I unset LD_LIBRARY_PATH and Qt plugin paths, and then it crashes just like the Flatpak when I try to open a preexisting project.

Full log can be found here.