fix: avoid memory overflow in ensure_no_na() for large sparse matrices with mode="lower" or mode="upper"
#2627
+47
−4