What can I do to make my new bathroom vanity more stable?
Screw it to the wall. A typical vanity has a wood strip along the upper back. Run some screws through the strip into the studs in the wall.

Do not use long screws. You run the risk of screwing a long screw into a pipe in the wall.