Thank you for the backtrace! Could you check if removing some or all entries from vaapi_encode_h264_defaults in libavcodec/vaapi_encode_h264.c fixes the issue? I was unable to quickly find the vaapi source file containing the option strings and I don't have a cpu with vaapi capabilities.
Thank you, Carl Eugen