I have both the endpoints of the Bezier Curve also I know the length of the curve and x' coordinate of the control point. So how can I find the y' coordinate of the control point?
I went through control polygon length approach of this link but solving it results into quartic equation which makes it difficult to find roots since I am trying to implement this in my code.

Your reference How long is that Bézier? has a link to A Primer on Bézier Curves, where they find an explicit expression for the arc length of a quadratic Bézier. Turn this into a function of $y'$ and use numerical methods such as binary search to find one of the solutions.
As starting points for a binary search, picking $y'$ such that the control point is collinear with the endpoints should result in a too short curve (at least if $x'$ is between $x_1$ and $x_2$), and by a simple estimate (using the polygonal bound after one subdivision) says that $$ y'=2\ell-\frac32|y_2-y_1|+\max\{y_1,y_2\}=2\ell-\frac12|y_2-y_1|+\min\{y_1,y_2\}$$ is a feasible initial choice for $y'$ that makes the curve too long.
Of course if you already reduced the problem to finding a root of a quartic, you can also take that as a starting point for a numerical search for a root (e.g., by Newton's method).