This wasn't a "random way of it screwing up." The designers just said "hey ChatGPT don't say the n-word under any circumstances." You can program an LLM that *only* responds with racial slurs if you want to. Go nuts