Resolving the $R_{\rm pA}$ and $v_2$ puzzle of $D^0$ mesons in $p-$Pb collisions