Yes, in this case, all notifications following it are guaranteed not even to be processed by the APNS server.
When APNS detects an invalid message, it writes the error response to the socket and closes the connection. Until you get an error response, you may have already sent more Apple messages to the same socket. All of them will not reach Apple. Once you create a new socket, you must send it all.
There is a risk of duplication.
Eran source share