Combining Eric Wofsey's Comment and Mine
Write $f(x):=h(x)-h(0)$ for each $x$. Let $\iota_i:\mathbb{R}\to\mathbb{R}^n$ and $\pi^i:\mathbb{R}^n\to\mathbb{R}$ be the $i$-th standard injection and the $i$-th standard projection $t\mapsto t\,e_i$ and $\left(t^1,t^2,\ldots,t^n\right)\mapsto t^i$, respectively. Here, $e_i$ is the $i$-th standard basis vector of $\mathbb{R}^n$. Then, we can easily seen that each function of the form $f^j_i:=\pi^j\circ f \circ \iota_i$ satisfies Cauchy's functional equation. Furthermore, $f$ is completely and uniquely determined by the family of functions $f^j_i$ (and vice versa): $$f\left(\sum_{i=1}^n\,t^ie_i\right)=\sum_{i=1}^n\,\sum_{j=1}^n\,f^j_i\left(t^i\right)\,e_j\,.$$
Hence, if $h$ need not be continuous, then we can take arbitrary solutions $f^j_i$ to Cauchy's functional equation to get a non-affine $h$. With continuity, each $h^j_i$ is continuous, so each of them is given by $f^j_i(t)=\alpha^j_i\,t$ for all $t\in\mathbb{R}$, where $\alpha^j_i$ is a fixed constant. Then, with $A=\left[\alpha^j_i\right]_{i,j=1,2,\ldots,n}$, we have $f(x)=Ax$ for all $x\in\mathbb{R}^n$, whence $$h(x)=f(x)+h(0)=Ax+h(0)$$
for all $x$.
To use the Jacobian approach under the continuity assumption, we note by some inductive arguments that $f(qx)=q\,f(x)$ for all $q\in\mathbb{Q}$, whence $f(tx)=t\,f(x)$ for all $t\in\mathbb{R}$ by continuity. Thus, $$\lim_{t\to0}\,\frac{f(x+ty)-f(x)}{t}=\lim_{t\to0}\,\frac{f(ty)}{t}=f(y)\,.$$
That is, $f$ is differentiable and the Jacobian matrix $J(x)$ of $f$ at $x$ satisfies
$$J(x)\,y=f(y)\,,$$
for all $y$. This means $\big(J(x)-J(z)\big)\,y=f(y)-f(y)=0$ for all $x,y,z$. Since $y$ is arbitrary, $J(x)=J(z)$ for all $x$ and $z$, so for some constant matrix $A$, we have $J(x)=A$.