That error is thrown because your Current User is yourself. Slack doesn’t allow you to invite yourself to a channel via API.
I tested this by using another Slack member’s User ID.