You can convert your equation into the following system of two PDE
$$
\frac{\partial u}{\partial t} = v
$$
$$
0= \frac{\partial^2 u}{\partial x^2} + A \frac{\partial^2 v}{\partial x^2} - B
$$
There are now two dependent variables, $u$ and $v$.
The discretization in the spatial dimension (i.e. method of lines (MOL)) is
straightforward; central difference will work. The resulting set
of equations is a system of differential algebraic equations (DAE) rather
than an ODE. There are many available methods for solving DAE but
explicit methods, like classical Runge-Kutta, are not typically used.
A widely used DAE solver is IDA from the Sundials suite.
Another well-regarded DAE solver is an implicit Runge-Kutta solver,
RADAU5. If you are determined to code your own solution, the most basic
implicit ODE solver, backward Euler, will also likely solve this DAE system but will, of course, require a relatively small time step for an accurate solution.
Finally, if you have access to Matlab or Octave, there are 1D PDE solvers
that will solve these two equations and let you avoid the difficulties of coding your own MOL solution.