Let us rewrite the equilibrium position of the bead as \begin{align*} \frac{mg\sin\theta}{kx} & = 1 - \frac{L_0}{\sqrt{x^2 + a^2}} \\\ 1 - \frac{mg\sin\theta}{kx} & = \frac{L_0}{\sqrt{x^2 + a^2}} \\\ 1 - \frac{mg\sin\theta}{kx} & = \frac{L_0}{a\sqrt{(x/a)^2 + 1}} \end{align*} Define the dimensionless variable $u = x/a$. Then \begin{align*} 1 - \frac{mg\sin\theta}{kau} & = \frac{L_0}{a\sqrt{u^2 + 1}}. \end{align*} The corresponding $R$ and $h$ are $$ R = \frac{L_0}{a} \ \ \textrm{ and } \ \ h = \frac{mg\sin\theta}{ka}. $$ Let us check that $R$ and $h$ are indeed dimensionless. It is clear that $R$ is dimensionless since $L_0$ and $a$ are lengths. The dimension of $mg$ is $$ [mg] = \frac{\textrm{mass}\times\textrm{length}}{\textrm{time}^2} $$ and the dimension of $k$ is $$ [k] = \frac{[mg]}{[x]} = \frac{\textrm{mass}}{\textrm{time}^2}. $$ Consequently, $h$ is also dimensionless. Here, the square bracket denotes the dimension of the quantity of interest.