Ta có: \(4x^2+4z^2=17\Rightarrow x^2+z^2=\frac{17}{4}\); \(4y\left(x+2\right)=5\Leftrightarrow2xy+4y=\frac{5}{2}\); \(20y^2+27=-16z\Rightarrow5y^2+4z=-\frac{27}{4}\)
\(\Rightarrow x^2+z^2-2xy-4y+5y^2+4z=-5\)
\(\Leftrightarrow\left(x^2-2xy+y^2\right)+\left(z^2+4z+4\right)+\left(4y^2-4y+1\right)=0\)\(\Leftrightarrow\left(x-y\right)^2+\left(z+2\right)^2+\left(2y-1\right)^2=0\Leftrightarrow\hept{\begin{cases}x=y=\frac{1}{2}\\z=-2\end{cases}}\)
\(\Rightarrow M=10.\frac{1}{2}+4.\frac{1}{2}+2019.\left(-2\right)=-4031\)