Parse the body of the error response to determine the issue.
Could be a problem with the token not having sufficent scopes
Of your From/to are usernames instead of userIDs
Or the to_broadcaster_id is rejecting raids from from_broadcaster_id
So you need to process the error.