Thanks @1318980 for the reply.
Does the python script correct the already merged file or you can do the merging of multiple .stl files without getting the error I got?
In any case, I’m comfortable with Python and I would be more than happy to test the python script, if you are willing to provide me with it.