Would a bot get locked out if it responds to 20 PING messages in a short period of time?

Make sure you proceed in this order:

PASS (dont forget to prefix "oauth:")
NICK
JOIN

This could also be a temporary error not related to a lock-out…? :tmi.twitch.tv NOTICE * :Error logging in when logging in on IRC