How can I prevent a family member with mental illness from being bullied?

Many factors. Depends on the individual, the age, the circumstances, who the bullies are, who the supposedly supervising people are in the situation, etc. Start with addressing it with the family member himself or herself. Someone closer to the situation where the bullying occurs is usually best.