Hi @Anonymous ,
You are getting above error because array index is outside bounds of array.
For example, lets take input value 'Power - Automate - Desktop' and apply split expression with separator '-'. Now the input value will split in to 3 sub text. Power , Automate and Desktop. Here the lower bound is 0 and upper bound is 2. So if i want to extract Automate then my expression would be outputs('Compose')[1]. But will get error for index value 3.
Sample Flow for your reference.

Kindly, check your input value and update the expression based on it.
If you like my response, please give it a Thumbs Up.
If this helps, please Accept as solution.
Regards
Kaif