Let $p$ and $q$ be positive integers such that $p$ is a prime, $p$ divides $q-1$, and $p+q$ divides $p^2+2020q^2$. Find the sum of the possible values of $p$.

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