The eccentricity is independent of the total orbital energy.
We can rewrite your first equation in terms of $a$, the semimajor axis of the orbit.
$$r = \frac{a(1 - \varepsilon^2)}{1+\varepsilon\,\cos(\varphi)}$$
At any point on the orbit, the speed is given by the vis-viva equation, which is a consequence of the invariance of the orbital energy and conservation of angular momentum.
$$v^2 = \mu\left(\frac2r - \frac1a\right)$$
where $\mu=GM$ is the sum of the standard gravitational parameters of the Sun & the planet (it's common to omit the planet's mass because it's so small relative to the Sun's).
For a circular orbit, where $\varepsilon=0$ and $r\equiv a$, the equation simplifies to
$$v^2 = \frac\mu a$$
Rearranging the vis-viva equation, we get the specific orbital energy, that is, the orbital energy per unit mass:
$$\frac{v^2}2 - \frac\mu{r} = -\frac\mu{2a}$$
In that equation, $\frac{v^2}2$ is the specific kinetic energy and $-\frac\mu{r}$ is the specific potential energy. So all orbits with the same $a$ have the same specific orbital energy.
The ellipses in the following diagram all have $a=1$ and a focus at the origin, so they all have identical specific energy.

Here are the same ellipses, but rotated about the focus so that they all pass through $(1, 0)$.

At that point, $r=a=1$. From vis-viva, all the orbits pass through that point with the same speed, so they all have the same specific kinetic energy there, and of course they have the same specific potential energy there because they're the same distance from the Sun.
The orbits all have identical orbital period $T$, given by
$$a^3 =\mu\left(\frac{T^2}{4\pi^2}\right)$$
Here's the Sage / Python script that I used to create those diagrams, running on SageMathCell.
Wikipedia gives a derivation for the vis-viva equation from the conservation of specific orbital energy and of specific orbital momentum. Here's a somewhat simpler derivation. Like Wikipedia, I'll use $\varepsilon$ for specific orbital energy and $e$ for eccentricity.
The specific orbital momentum (pseudo)vector is $\bf{h = r \times v}$. At periapsis and apoapsis, $\bf r$ is perpendicular to $\bf v$, so the equation simplifies to $h=rv$. As mentioned above, the specific orbital energy is given by
$$\varepsilon = \frac12v^2 - \frac\mu{r}$$
So
$$\varepsilon r^2 + \mu r = \frac12(rv)^2 = \frac12 h^2$$
is constant.
At apoapsis, $r=a(1+e)$,
at periapsis $r=a(1-e)$. Thus,
$$\varepsilon a^2(1+e)^2 + \mu a(1+e) = \varepsilon a^2(1-e)^2 + \mu a(1-e)$$
$$\varepsilon a((1+e)^2 - (1-e)^2) = \mu ((1-e) - (1+e))$$
$$\varepsilon a(4e) = \mu (-2e)$$
Thus
$$\varepsilon = \frac{-\mu}{2a}$$
So
$$\varepsilon = \frac12v^2 - \frac\mu{r} = \frac{-\mu}{2a}$$
which can be rearranged to give the vis-viva equation:
$$v^2 = \mu\left(\frac2r - \frac1a\right)$$