This is only a partial answer for the case $p=0$
In this case $g(z)$ takes the form $$Cz^m\prod_{n=1}^\infty \left(1-\frac{z}{x_n} \right) $$ where $x_n \in \mathbb R$ are the zeros (multiple zeros being repeated), which satisfy $$\sum_{n=1}^\infty \frac{1}{|x_n|}<\infty. $$ We then have $$f(z)=Ce^{- \beta z^2} z^m \prod_{n=1}^\infty \left(1-\frac{z}{x_n} \right), $$ and as you said $$\frac{f'(z)}{f(z)}=-2 \beta z+ \frac{m}{z}+ \sum_{n=1}^\infty \frac{1}{z-x_n}. $$ Taking the imaginary part of this we find $$\text{Im} \frac{f'(z)}{f(z)}= \left[-2\beta-\frac{m}{x^2+y^2}-\sum_{n=1}^\infty \frac{1}{(x-x_n)^2+y^2} \right] y, $$ where $z=x+iy$. Thus zeros of the derivative $f'(z)$ can only occur when $y=0$, that is when $z$ is real. I will try to develop this solution further, but that's all I've got for now.