Can you pull up the edges, cut them down a bit to create an expansion gap, then reinstall? Or if it's just up against drywall, just cut the drywall out at floor height. Seems like that'd make any repair you did in the middle a longer term fix.
If it's only buckled right in the middle, could you pull those up, cut out the shitty nails, and then glue those middle pieces back down? You'd have to cut off the tongues to be able to get it back in, but that's probably OK all things considered. (I'm not a flooring guy, so maybe this is a terrible idea, but it seems like if you did that + cutting an expansion gap on the edges, the floor would basically expand / contact away from the middle glued pieces. )
Sent from my SM-S901U using Tapatalk