Make use of AVX512 VPLZCNT/VPOPCNT to perform the big integer bit counts per vector element and then use VPCOMPRESS to extract the first non-zero element result.
There's more we can do here (widen/split other vector widths etc.) - but this is a good starting point.