Holes in bearing wall studs (exterior and interior walls that bear the weight of the roof and/or other stories above) may not exceed 40 percent of the width of the stud.
Notches in bearing wall studs may not exceed 25 percent of the stud’s width.
Holes in non-bearing walls can’t exceed 60 percent of their width.
Notches in non-bearing walls can’t exceed 40 percent of their width.
The edge of a hole must be at least 5/8 in. from the edge of a stud.
For the pitch pocket question: