The milliseconds-vs-seconds one has bitten more people than anyone admits, and the "one stale event rejects the whole batch" rule is a nasty surprise for anyone retrying a queue. On point 3, a related trap: if fbc is missing on the server because the landing page lost the fbclid somewhere (a redirect, a consent banner that reloads the page), match quality drops even when everything else is formatted perfectly. It helps to capture the fbclid server-side on the very first request and keep it with the visit.
That's how we handle it in ArtisanClo, the traffic filter with a built-in tracker our team just launched for Facebook, Google and TikTok buyers (disclosure: I'm on the team). The validator in your post is a nice touch.