The best thing you can do to prevent from getting hacked on OnlyFans is by using 2 factor authentication from settings.
With 2-factor authentication, an extra layer of security is added to your account to prevent someone from logging in, even if they have your password. Just knowing and entering your password is not enough since there is a second layer which is usually time sensitive. This makes the process a whole lot more secure.
This will protect your OnlyFans account from being hacked by others. Only two-factor accounts are protected from these automated log-in attacks. Two-factor also protects you against phishing emails.