Factorizations of almost simple groups with a factor having many nonsolvable composition factors