the same was recently reported here: StaMPS processing error
I don’t have a solution for it. How many images are you using?
Please also have a look at mdelgado’s comments here: Error in SNAP - StaMPS processing of RS2 data: "Index in position 1 is invalid"