How to add filter in custom rss feed

As you can see from the source is_feed takes a parameter, so you should be able to restrict the query by using $query->is_feed('custom_rss2').