XIAO S3 low performance voltage regulator

have you tried using UV PCB glue to secure and insulate the battery wires?

The photo in Post 13 is fixed with urethane resin adhesive.