The first issue is caused by the intel-media-driver from RPM Fusion and the new libva-intel-media-driver from Fedora 40. You may need to uninstall one.
The package libva-2.20.0-2.fc39 is a Fedora 39 package. It should be upgraded to libva-2.20.0-4.fc40. Do you have libavcodec-freeworld or ffmpeg from RPM Fusion installed?
In addition, there is an issue with Fedora 40 Rawhide (I cannot boot my device after 20240130 update: