How many nonzero coefficients can a polynomial $P(z)$ have if its coefficients are integers and $|P(z)| \leq 2$ for any complex number $z$ of unit length? Please provide the sum of all possible values.

Let's think step by step and output the final answer within \boxed{}.
user