Seems like you're republishing the VOD stream to Youtube and Facebook simultaneosly, and Facebook closes the RTMP connection at its side after 10-12 seconds of republishing:
But translation to Youtube goes until the end of the file.
Seems like you have some channel problems between your server and Facebook ingest point server. Please use automatic RTMP reconnection options:
Also, please provide the file sample you use. Send it using this form
(or place it to GoogleDrive/OneDrive/etc and send the link if the file size is more than 30 M)