Could you please confirm if this proof is correct?
Theorem: If $q \neq 0$ is rational and $y$ is irrational, then $qy$ is irrational.
Proof: Proof by contradiction, we assume that $qy$ is rational. Therefore $qy=\frac{a}{b}$ for integers $a$, $b \neq 0$. Since $q$ is rational, we have $\frac{x}{z}y=\frac{a}{b}$ for integers $x \neq 0$, $z \neq 0$. Therefore, $xy = a$, and $y=\frac{a}{x}$. Since both $a$ and $x$ are integers, $y$ is rational, leading to a contradiction.

It's wrong. You wrote $\frac{x}{z}y = \frac{a}{b}$. That is correct. Then you said "Therefore $xy = a$. That is wrong.
You need to solve $\frac{x}{z}y = \frac{a}{b}$ for $y$. You get $y = \frac{a}{b} \cdot \frac{z}{x}$.