\(\left(m+1-\sqrt{m}\right)\left(m+1+\sqrt{m}\right)\left(m^2+1-m\right)=1\)
\(\left(\left(m+1\right)^2-m\right)\left(m^2+1-m\right)=1\)
\(\left(m^2+1+m\right)\left(m^2+1-m\right)=1\)
\(\left(m^2+1\right)^2-m^2=1\)
\(\left(m^2+1\right)^2-\left(m^2+1\right)=0\)
\(\left(m^2+1\right)m^2=0\)
m =0