Related to this:
On Linux, when using NVIDIA, I highly recommend using NVENC over VAAPI. Like in the other thread, look at the export job log.