Bad parsing of the relay you’re using.
You could try double escaping it - “\\n”.
I feel like something else is going on. I've gotten the same response on 3 different relays. Everything works fine when I exclude the "\n" (also tried \\n) - Maybe something with the signing library I am using