Adding test case for the problem.
The issue has been fixed by a patch for #26106.
--- /dev/null
+puts "=========="
+puts "0023513: BRepMesh doesn't stop until out-of-memory"
+puts "=========="
+puts ""
+
+restore [locate_data_file bug23513_infface.brep] result
+
+vinit
+vsetdispmode 1
+vdisplay result
+vfit
+
+checkview -screenshot -3d -path ${imagedir}/${test_image}.png
+
+checktrinfo result -tri 323648 -nod 161865 -defl 0.00096399964870812682
+
+set log [tricheck result]
+if { [llength $log] != 0 } {
+ puts "Error : Invalid mesh"
+} else {
+ puts "Mesh is OK"
+}