sh.status() error processing query: ns=config.mongosTree
As I am able to see that you are getting the exit error code : 2

As MongoDB documented here The error code :2  signifies The specified options are in error or are incompatible with other options.

As per MongoDB documentation here The sh.status(), When run on a mongos instance, prints a formatted report of the sharding configuration and the information regarding existing chunks in a sharded cluster. The default behavior suppresses the detailed chunk information if the total number of chunks is greater than or equal to 20.

For further your ref here and here