I doubt it’s warranty, those JST type connectors are prone to doing that if you pull too hard while not properly depressing the locking tab on the connector.
As long as the pads aren’t messed up on the PCB, you should just be able to remove the connector and place it back on the PCB. Maybe add a little glue as well.