nvenc: better error handling