In Task list, you can't select any item category.
Either you can maintain that component as Non stock item in Bill of Material & you can select from that. If you can have both kinds of Item category but based on task list, then maintain either directly in order or maintain 2 items one with stock item category and another with non stock item category (select which one you want to choose in task list).