I believe the problem with your function is common to every "proximable" function, i.e., a function whose proximal mapping is explicitly computable. Usually, even if you know how to efficiently compute
$$\mbox{prox}_{\sigma g}(x) = \mbox{argmin}_z\{g(z) + \tfrac{1}{2\sigma}\|x-z\|^2\},$$
still you are unable to efficiently compute
$$\mbox{prox}_{\sigma (g\circ L)}(x) = \mbox{argmin}_z\{g(Lz) + \tfrac{1}{2\sigma}\|x-z\|^2\},$$
where $L$ is a linear map, unless $L$ has a very peculiar structure such as $L L^* = \mu I$ for $\mu>0$, see for example Bauschke, Combettes, Proposition 23.32. If $g$ is separable, that is $g(x) = \sum g_i(x_i)$, then you can compute the prox of $(g\circ L)$ if $L\succ 0$ is diagonal.
For general $L$ either you compute the prox of $(g\circ L)$ numerically (therefore only approximately) or you somehow reformulate your original optimization problem to get rid of $L$ in the proximable term: for example, instead of solving
$$ \mbox{minimize}\quad f(x) + g(Lx) $$
where $f$ is some other term in the cost, you may prefer to solve
$$ \mbox{minimize}\quad f(x) + g(z)\quad \mbox{subject to}\quad Lx = z$$
by tackling the dual problem. For example you can tackle the above equality-constrained problem, depending on what $f$ is, using ADMM or the (accelerated) alternating minimization method (AMM), which is the dual (fast) proximal-gradient method. In both methods you will only apply the prox of $g$, and not of $(g\circ L)$. Of course this depends on what your original problem is, it might not be in the form I just mentioned.