In case you experience the an error without a sensible message immediately after you started to burn a CD/DVD, you might try this solution:
sudo chmod +s $(which wodim)
Reason for the error are missing permissions.
I experienced this on a fresh Fedora 41 installation.
Credits: https://www.linuxquestions.org/questions/showthread.php?p=6362061 and https://bugs.launchpad.net/ubuntu/+source/brasero/+bug/1764096