Exporting recording to EDF file

Hello,
I am using Brainstorm 05-Jul-2023 and I get this error when I try to export a recording to an EDF file:

The way I do it is to right-click on the recording and then select File -> Export to file. I even tried "import in database" and then export the imported epoch, but still get the same error. Here is a picture of the steps I take for exporting to file:

I would be grateful if you could let me know what is going wrong.

I have tried to replicate the error without success

Could you share the a sample file that causes the issue?
Upload the file somewhere and post the download links here