I) In this answer we will consider the standard Nambu-Goto (NG) string and show that the Hessian has co-rank 2. The target space (TS) metric $G_{\mu\nu}(X)$ has sign convention $(-,+,\ldots,+)$, and $c=1=\hbar$. The NG Lagrangian density is
$$\begin{align}{\cal L}_{NG}
~:=~&-T_0\sqrt{{\cal L}_{(1)}}, \cr
{\cal L}_{(1)}~:=~&-\det\left(\partial_{\alpha} X\cdot \partial_{\beta} X\right)_{\alpha\beta}\cr
~=~&-\det\begin{pmatrix}a &c \cr c & d \end{pmatrix}\cr
~=~& c^2-a d\geq 0,\cr
a~:=~&\dot{X}^2~\leq~0,\cr
c~:=~&\dot{X}\cdot X^{\prime} ,\cr
d~:=~&(X^{\prime})^2~>~0.\end{align}\tag{1}$$
The inequality ${\cal L}_{(1)}\geq 0$ is explained in e.g. Ref. 1. We will in the following only consider regular world-sheet points where
$${\cal L}_{(1)}~>~0\tag{2}$$
is strictly positive.
II) Momenta are
$$\begin{align} P_{(1)\mu}
~:=~&\frac{\partial {\cal L}_{(1)}}{\partial \dot{X}^{\mu}}\cr
~=~& 2c X^{\prime}_{\mu} -2 d \dot{X}_{\mu} , \cr
P_{(1)}\cdot \dot{X}~=~&2{\cal L}_{(1)},\end{align}\tag{3} $$
$$ P_{\mu}
~:=~\frac{\partial {\cal L}_{NG}}{\partial \dot{X}^{\mu}}
~=~ -\frac{T_0}{2{\cal L}_{(1)}^{\frac{1}{2}}} P_{(1)\mu}. \tag{4}$$
III) The original Hamiltonian density vanishes identically
$$ {\cal H}_0~:=~ P\cdot \dot{X} - {\cal L}_{NG}~=~0 , \tag{5}$$
as we would expect for a reparametrization-invariant theory. This means that whatever primary constraints there are, there will not be any secondary constraints. We find two primary constraints
$$ P_{(1)}\cdot X^{\prime} ~=~0 \quad\Rightarrow \quad \chi_0~:=~P\cdot X^{\prime} ~=~0,\tag{6}$$
$$ P_{(1)}^2~=~ -4d {\cal L}_{(1)}\quad\Rightarrow \quad \chi_1~:=~\frac{P^2}{2T_0}+\frac{T_0}{2}(X^{\prime})^2~=~0.\tag{7} $$
The two primary constraints (6) & (7) then form a first class Poisson algebra
$$\begin{align}\{\chi_0(\sigma),\chi_0(\sigma^{\prime})\}_{PB}
~=~&\left[ \chi_0(\sigma)+\chi_0(\sigma^{\prime})\right] \delta^{\prime}(\sigma-\sigma^{\prime})\cr
~=~&\{\chi_1(\sigma),\chi_1(\sigma^{\prime})\}_{PB},\cr
\{\chi_0(\sigma),\chi_1(\sigma^{\prime})\}_{PB}
~=~&\left[ \chi_1(\sigma)+\chi_1(\sigma^{\prime})\right] \delta^{\prime}(\sigma-\sigma^{\prime}). \end{align}\tag{8} $$
Equivalently, if we define
$$ \chi_{\pm} ~:=~ \frac{\chi_1\pm\chi_0}{2} ~=~ T_0Y_{\pm}^2 ,\tag{9}$$
with
$$\begin{align} Y^{\mu}_{\pm}
~:=~&\frac{1}{2T_0}P^{\mu}\pm\frac{1}{2}X^{\mu\prime},\cr
Y_{\pm,\mu}~:=~&G_{\mu\lambda}Y^{\lambda}_{\pm}\cr
~=~&\frac{1}{2T_0}P_{\mu}\pm\frac{1}{2}G_{\mu\lambda}X^{\lambda\prime}, \end{align}\tag{10}$$
which satisfies
$$\begin{align} \{Y_{\pm,\mu}& (\sigma), Y_{\pm^{\prime},\nu}(\sigma^{\prime})\}_{PB}\cr
~=~& \frac{1}{4T_0}\left[ \pm G_{\mu\nu}(\sigma)\pm^{\prime} G_{\mu\nu}(\sigma^{\prime})\right]\delta^{\prime}(\sigma-\sigma^{\prime}) \cr
&+\frac{1}{4T_0}\left[\pm \partial_{\nu}G_{\mu\lambda}\mp^{\prime}\partial_{\mu}G_{\nu\lambda}\right]X^{\lambda\prime} \delta(\sigma-\sigma^{\prime}) \cr
~=~& \frac{\pm 1 \pm^{\prime} 1}{4T_0}\left[ G_{\mu\nu}(\sigma) + G_{\mu\nu}(\sigma^{\prime})\right]\delta^{\prime}(\sigma-\sigma^{\prime})\cr
& - \frac{\pm 1 \pm^{\prime} 1}{8T_0}\Gamma_{[\mu,\nu]\lambda}X^{\lambda\prime} \delta(\sigma-\sigma^{\prime})\cr
& + \frac{\pm 1 \mp^{\prime} 1}{4T_0}X^{\lambda\prime} \Gamma_{\lambda,\mu\nu} \delta(\sigma-\sigma^{\prime}), \end{align}\tag{11}$$
then we classically get a direct sum of two copies of the Witt algebra
$$\begin{align}\{\chi_{\pm}(\sigma),&\chi_{\pm^{\prime}}(\sigma^{\prime})\}_{PB}\cr~=~& \frac{\pm 1 \pm^{\prime} 1}{2} \left[ \chi_{\pm}(\sigma)+\chi_{\pm^{\prime}}(\sigma^{\prime})\right] \delta^{\prime}(\sigma-\sigma^{\prime}).\end{align} \tag{12}$$
Note in particular that the $+$ and the $-$ sector in eq. (12) Poisson mutually commute! The total Hamiltonian density becomes of the form "Lagrange multipliers times constraints"
$$ {\cal H}~=~\lambda^{\alpha} \chi_{\alpha}, \qquad \alpha~\in~\{0,1\} .\tag{13}$$
IV) The Hessian reads
$$H_{(1)\mu\nu}~:=~\frac{\partial^2 {\cal L}_{(1)}}{\partial \dot{X}^{\mu}\partial \dot{X}^{\nu}}
~=~2 X^{\prime}_{\mu}X^{\prime}_{\nu} -2d G_{\mu\nu}\tag{14} ,$$
$$H_{(1)\mu\nu}X^{\prime\nu}~=~0, \qquad
H_{(1)\mu\nu}\dot{X}^{\nu}~=~P_{(1)\mu},\tag{15} $$
$$\begin{align} H_{\mu\nu}~:=~& \frac{\partial^2 {\cal L}_{NG}}{\partial \dot{X}^{\mu}\partial \dot{X}^{\nu}}\cr
~=~&-\frac{T_0}{2{\cal L}_{(1)}^{\frac{1}{2}}}H_{(1)\mu\nu}+\frac{T_0}{4{\cal L}_{(1)}^{\frac{3}{2}}}P_{(1)\mu}P_{(1)\nu}\end{align}\tag{16} ,$$
$$\begin{align} -\frac{{\cal L}_{(1)}^{\frac{3}{2}}}{T_0}H_{\mu\nu}
~=~&\frac{1}{2}{\cal L}_{(1)}H_{(1)\mu\nu}+\frac{1}{4}P_{(1)\mu}P_{(1)\nu}\cr
~=~& (c^2-ad)(X^{\prime}_{\mu}X^{\prime}_{\nu} -d G_{\mu\nu})\cr
&- (c X^{\prime}_{\mu} -d \dot{X}_{\mu})(c X^{\prime}_{\nu} -d \dot{X}_{\nu}).\end{align}\tag{17} $$
V) It is easy to check that $\dot{X}$ and $X^{\prime}$ are two zero-modes for the Hessian $H_{\mu\nu}$.
Now consider an arbitrary zero-mode
$$Z~\notin~ {\rm span}_{\mathbb{R}}(\dot{X},X^{\prime}).\tag{18}$$
We would like to find two real numbers $\alpha,\beta\in\mathbb{R}$ such that the vector
$$V ~:=~ Z - \alpha \dot{X} - \beta X^{\prime} \tag{19}$$
is orthogonal to $\dot{X}$ and $X^{\prime}$, i.e.
$$ V\cdot \dot{X}~=~0\qquad\text{and}\qquad V\cdot X^{\prime}~=~0. \tag{20}$$
It is easy to see that this is possible if ${\cal L}_{(1)}\neq 0$,
which is satisfied in regular worldsheet points, cf. ineq. (2). It then follows from eq. (18) that $V\neq 0 $. And since $\dot{X}$ is non-spacelike, then eq. (20) implies that $V$ is space-like.
VI) Finally the quadratic form reads
$$ 0~=~Z^{\mu}H_{\mu\nu}Z^{\nu}~\stackrel{(14)}{=}~\frac{T_0 d V^2}{{\cal L}_{(1)}^{\frac{1}{2}}}~>~0.\tag{21} $$
Contradiction.
Hence $\dot{X}$ and $X^{\prime}$ are the only two zero-modes. They go hand in hand with the two first class constraints (6) and (7).
References:
B. Zwiebach, A first course in String Theory, 2nd edition, 2009; p. 109-110.
E. Kiritsis, String Theory in a Nutshell, 2007; p.15.