This type of railing must go into studs, blocks or house framing.

Cut the drywall from the nearest stud to the stud across and install a 2x4 blockig. Close the wall with the piece of drywall you just cut out and finish it.

Now you are ready to bolt on your new railing.