unless you pitched a shit load of infecting bugs (like your dog barfed into the fermentor or something) there’s no way an infection would show up so dramatically after just 16 hours. Sounds like your yeast is just really happy and filling your headspace up with foam.
I’ve had varying luck with bottles like that, sometimes they don’t hold pressure and you end up drinking flat beer. Using those lids on standard wine bottles and carbonating in them is a recipe for creating high velocity glass shrapnel.