Too many quotes can lead to errors just write payload content into a file then pass the file to curl, before check manually if the same payload sended from your pc return the same error maybe is a server side issue.