What happens to bad relays - outdated
The page https://community.torproject.org/relay/community-resources/bad-relays/ lists three things that can happen with bad relays: BadExit, Invalid and Reject. As of now, relay cannot be made Invalid (since proposal 272), but can (or not yet? should be clarified) become MiddleOnly.