Let $X$ and $Y$ be random variables and $k$ be a non-random constant.
Assume that $Y = kX$. It would be contradictory to write $k = Y / X$, since $k$ is non-random. In general, this must mean that (some) ordinary manipulations cannot be used when we have expressions mixed with random variables and non-random variables.
I know that $Y$ and $X$ are measurable functions but I am not knowledgable enough to say if it's because of this we cannot write $k = Y / X$.
For instance, consider two non-random functions $y(t)$ and $x(t)$ such that y(t) = k x(t) then we have that $k = y(t) / x(t)$...
Do someone have an explanation for this? Where can I learn more about this?
In this situation it is indeed risky to write $k=Y/X$ but this because random variable $X$ is actually a function that can take value $0$. In that case the RHS is not well-defined. If $X$ is a random variable that does now take value $0$ then there is no objection.
You could argue that on LHS we have a constant and on RHS we have a function, but that is not such a problem. We can just identify $k$ with a constant function on the same domain of $X$ and $Y$.
After all it does not hurt to write equalities like: $$1=\cos^2t+\sin^2t$$where the LHS shows a constant and the RHS a function on $t$.
Your objection "$k$ non-random" has the same character as the objection "$1$ is not a function".