Membership content protection plugin spam attack

Hello, my hosting company said that my vps site is under attack because of membership plugin. There are thousands of spammy users registering and tying up the server. I cannot connect to the server.
I am going to delete the plugin but how do I prevent this from happening?