Short answer
You assume the ball changes its kinetic energy by $E_0$ in both cases. This is not what happens.
To change the horizontal momentum of the ball you need horizontal force. This force comes from the machine. Newton's third law states there's another force applied to the machine.
In the first case you silently assume the machine is so massive it barely moves. The $\text{force} \cdot \text{displacement}$ is its energy change and it may be neglected because the displacement is tiny. In this case you may say the kinetic energy of the ball changed by $E_0$.
In case of the moving car the machine barely changes its speed but its displacement in the new reference frame is huge. This means the machine loses or gains energy; it exchanges energy with the ball and now you cannot neglect it. So the change of the kinetic energy of the ball is not $E_0$ in this case.
Strict calculations (classical)
Let's define the following:
$m$ – mass of the ball.
$M$ – mass of the machine (with car and everything else rigidly connected).
$w$ – initial horizontal speed of the machine and the ball. The problem is now one-dimensional so there's no need to introduce vectors. Speed towards right will have opposite sign than speed towards left. This applies to all "vectors" from now on.
$E_0$ – energy that is not kinetic energy initially, but finally it is.
$v$ – final horizontal speed of the ball.
$V$ – final horizontal speed of the machine.
Conservation of momentum:
$$(M+m)w = MV + mv$$
$$V = \frac{(M+m)w - mv}M \tag{1}\label{1}$$
Conservation of energy:
$$(M+m)\frac{w^2}2 + E_0 = \frac{mv^2}2 + \frac{MV^2}2$$
$$(M+m)w^2 + 2E_0 \stackrel{\eqref{1}}= mv^2 + M\left(\frac{(M+m)w - mv}M\right)^2$$
$$…$$
$$v^2 - 2wv + w^2 - \frac{2M}{m(M+m)}E_0 = 0$$
This is a quadratic equation w.r.t. $v$. The discriminant:
$$D = 4w^2 - 4\left(w^2 - \frac{2M}{m(M+m)}E_0\right) = … = \frac{8M}{m(M+m)}E_0$$
$$\sqrt{D} = 2\sqrt{\frac{2M}{m(M+m)}E_0}$$
And solutions:
$$v = \frac{2w \pm 2\sqrt{\frac{2M}{m(M+m)}E_0}}2 = w \pm \sqrt{\frac{2M}{m(M+m)}E_0}$$
$$V \stackrel{\eqref{1}}= w \mp \sqrt{\frac{2m}{M(M+m)}E_0}$$
You take '$+$' or '$-$' according to the way your ramp works. The important thing is: if you take '$+$' for $v$ then you must take '$-$' for $V$ and vice versa.
The changes of speeds:
$$\Delta v = v - w = \pm \sqrt{\frac{2M}{m(M+m)}E_0} \tag{2}\label{2}$$
$$\Delta V = V - w = \mp \sqrt{\frac{2m}{M(M+m)}E_0}$$
These values don't depend on $w$. According to Galileo this is what we expected, no paradox here.
Finally let's consider $M \gg m$. Then:
$$\Delta v \approx \pm \sqrt{\frac{2E_0}m}$$
$$\Delta V \approx 0$$
The first formula is almost your basic result. Almost, because you used '$=$' and this would be the limit for $M \rightarrow \infty$.
About momentum and energy
Consider the initial state of the ball. Its horizontal momentum and kinetic energy clearly depend on $w$:
$$p_b = mw$$
$$E_b = \frac{mw^2}2$$
This means we "see" some amounts of them in one frame of reference, some other amounts in another frame of reference. Nothing surprising here.
At this point let's "detach" symbols like $v$ and $m$ from our particular problem for a moment and analyze general formulas
$$p = mv$$
$$E = \frac{mv^2}2$$
like this:
$$dp = m dv$$
$$dE = mv dv \tag{3}\label{3}$$
The interpretation is: to increase speed by $dv$ you need to add some momentum $dp$ that doesn't depend on current speed $v$; but you have to add some energy $dE$ that does depend on current speed $v$. The larger $v$ the more $dE$ you need to add to achieve $v+dv$.
So in various frames of reference you need various amounts of energy.
Let's get back to your light ball and the massive machine. In the first case ($w = 0$) both objects gain velocity, so they gain kinetic energy. Almost all of the additional energy $E_0$ is transferred to the ball, the remaining tiny part is transferred to the machine.
In the second case, however, you can have $w$ arbitrarily large. Let the machine (ramp) work in a way that accelerates the ball further (i.e. $\Delta v > 0$). We already know from $\eqref{2}$ that $\Delta v$ doesn't depend on $w$. Still from $\eqref{3}$ we have:
$$\Delta E_b \approx mw\Delta v$$
With large enough $w$ it's easy to have $\Delta E_b \gg E_0$. Where does this energy come from?
As I said in my short answer above, this energy comes from the machine. In this case the machine acts as a source of energy because its velocity in this reference frame is reduced, so its kinetic energy is decreased.
In other words:
- In a frame of reference where $w = 0$ the machine gains tiny amount of kinetic energy and the ball gains moderate amount (about $E_0$) of kinetic energy. The net change in kinetic energy is exactly $E_0$.
- In a frame of reference where $w$ is large (in comparison to, say, the absolute value of $\Delta V$) the machine loses (or gains, depending on which way the ramp works) huge amount of kinetic energy and the ball gains even more (or loses almost as much, depending on which way…). Still the net change in kinetic energy is exactly $E_0$.
- (trivia) In a frame of reference where $\Delta V = -2w$ the speed of the machine changes from $w$ to $-w$, its kinetic energy remains the same and all $E_0$ is converted to kinetic energy of the ball.
It's now clear to me your assumption that the kinetic energy of the ball increases by $E_0$ was approximately good in your first case but totally wrong in general second case.
Other comments
One may say it's crucial that your ramp converts energy perfectly, without friction, without inducing ball rotation etc. I say it's not that important. If only a part of available energy is converted to kinetic energy then we shall simply call this part $E_0$.
$E_0$ may be any kind of energy that can be converted to horizontal kinetic energy as long as this conversion doesn't alter horizontal momentum. E.g. it can be the energy of compressed spring or gunpowder.
I think the whole phenomenon is similar to perfectly inelastic collision played in reverse. This answer to another question discusses energy in such collision and the conclusion is the same: in reference frame where $M$ is already moving you cannot neglect its kinetic energy.