Do I need to patch the hole in my bathroom drywall behind the vanity?
That does not even qualify as a hole as the back of the drywall is not broken. Just push some drywall mud, vinyl Spackle or caulking into it and call it good. you don't even need to make it pretty, just make sure it flush with the wall so it does not interfere with the vanity.