Suricata 7 - Handling of empty bpf-filter in af_packet (core dump)

Tracking: Bug #6302: af-packet: fails to handle null bpf-filter - Suricata - Open Information Security Foundation

Workaround as you have found is to just comment it out.