Claim: The required shortest length is AB = 8 units where A is the intersection of $L_1:y = x$ and $C: y^2 = 4x$ and B is similarly defined using $L_2: y = -x$.

Clearly, $\angle AOB = 90^0$.
The case when both endpoints of its hypotenuse lying further right of x = 4 will never be qualified.
Any other possible candidates with one endpoint of its hypotenuse lying further right of x = 4 will also be not qualified. In the illustration, $\triangle A’b’O’$ is an example with A’b’ > AB. (I am not going to spend time in proving this part.)
Now, let us test if a (governed) right angled triangle can be form when both A’ and B’ are on the left side of x = 4. That is, $A’ = (p, 2\sqrt p)$ and B’ = $(q, -2 \sqrt q)$ where $0 \lt p, q \lt 4$.
Using A’B’ as diameter, form the dotted circle. By the converse of “angles in the semi-circle”, the third point (let us call it X) of the right-angled triangle A’XB’ must lie outside the parabola. This means no other right angled triangles meeting the requirement can be formed. This can also be proved by:-
Equation of the circle XA’B’ is $D: (x – p)(x – q) + (y – 2\sqrt p)(y + 2 \sqrt q) = 0$
The “tangent length” from the extreme point (0, 0) to D is imaginary.