So sorry, you had that happen. That bites!
There's no such thing as a waterproof floor. I don't care what the marketing says, it just isn't so. They are extremely water resistant and can tolerate moisture to a certain degree, but having 5 gallons of water on the floor is not considered a normal spill or even covered under the warranty. In fact, if you read the product warranty it specifically excludes flooding from the warranty.
"6. These limited warranties do not apply to moisture damage caused by events beyond everyday household spills, including but not limited to, flooding, standing water, leaking pipes, mechanical failures or appliance leaks."
In many cases what "waterproof" actually refers to in the fine print is that if you have a spill (a glass of water for example), it will not penetrate through the locking system for up to a certain number of hours. If the floor was truly "waterproof", the warranties on these products wouldn't immediately exclude slab moisture and they wouldn't require you to completely seal the perimeter or do moisture testing. There would be no need to do that.
"A moisture test must be performed to determine if excessive moisture exists in the subfloor."
- If it's waterproof, why would you need to do a moisture test???
"The entire perimeter of the installation must be sealed with 100% silicone sealant. All expansion spaces must be filled with 3/8” compressible PE foam backer rod and covered with 100% silicone sealant. Apply 100% silicone sealant to all moldings at the point of contact with the flooring surface. Apply silicone sealant at all connections to doorframes or any other fixed objects."
-- Was any of this done? If no, then you have not "installed properly in accordance with Pergo Installation instructions. Again, now warranty.
For further reading...
"The flooring must be maintained in accordance with Pergo care and maintenance 2020_06_OP_WARPERGO Outlast+ Limited Lifetime Residential Warranty instructions. Damage resulting from excessively wet maintenance or from using detergents, abrasive cleaners, soaps, waxes or polishes is not covered by this limited warranty.
-- If it's waterproof, why would "excessively wet maintenance" be a problem?
You need 3 things to grow mold or bacteria...1). water (check), 2). a food source (dirt, adhesive residual, or anything organic that bacteria can consume), and dark (check). Since you for sure have two of the three, I would say you have a more than 50% chance of growing mold, or mildew in the closed space.
I do wish you all the best with it and hope that you can resolve it without much disruption and expense. If you have any questions, I'll do my best to give you an honest answer. The warranty document for your floor is attached if you want to see where I was quoting from. Also, this is not a Pergo thing, this is an industry wide thing. It's all of them.