Without some sample data, it's challenging to respond to this. I can only assume that you would wish to claim that substrings in the original place are maintained. If you're willing to use Microsoft Office 365, you could develop a function.

Formula in C1:
=LET(del," ",MAP(A1:A4,LAMBDA(x,LET(y,TEXTSPLIT(x,del),TEXTJOIN(del,,MAP(y,LAMBDA(z,IF(SUM(--(y=z))>9,z,""))))))))