BQN, 1515 13 bytesSBCS
-2 bytes thanks to Razetime!
{=๐ฉ?(โ โยด๐ยจโ โยด๐โ=ยจ)๐ฉ;0ร๐ฉ} {=๐ฉ?(โ โยด๐ยจโ โยด๐โ=ยจ)๐ฉ;0ร๐ฉ} # Anonymous function taking the list as right argument ๐ฉ =๐ฉ ร๐ฉ # RankSign of theeach argument;number, 0converts forall intsnumbers andto 1 for lists ?=๐ฉ ยจ # IfFor theeach rankvalue isin 1:the list ๐โ= ๐ยจ ๐ฉ # Recursivedo a recursive call onif eachit elementis a list (rank 1) โ โยด # Maximumand reductionreturn ofintegers theunchanged results(rank starting0) with the length of ๐ฉ โ โยด # Maximum reduction of ;0the results #starting Otherwise:with Returnthe 0length of ๐ฉ or questionable 12 bytes:
{(โ โยด๐โ0ยจ)๐ฉ} This relies on exceeding the maximum call stack size, which means this only works if such a limit exists and is larger than the maximum depth of the ragged list.