Study of J/ψ azimuthal anisotropy at forward rapidity in Pb-Pb collisions at \( \sqrt{s_{\mathrm{NN}}}=5.02 \) TeV