I experienced similar problem with my second biktrix, a Jugg HD Classic, within 20 miles of riding new. What I found was that the metal bushing nut supporting the electrical connector on the battery was loose allowing random disconnection of the battery from the integrated bracket. I disassembled the battery in order to push the electrical connector through sufficiently to reattach and tighten the bushing. I also found the bushing loose on the bike side and tightened it also. I was lucky and had a second bike to help isolate the issue (worked on my bike but not wife’s). Used locktite blue on all and haven’t had another issue.
Pic below is of the bike side bushing (the metal around the plug). It has a mate on the battery.
Also, worth checking is the following. In the attached picture you’ll note a missing bolt in the center of the picture. This bolt came loose and became lost after about a hundred miles of riding my Jugg FS. I was unaware but enough wiggle was allowed that the battery was performing intermittently - i could stop and jam it all back together but any bumps would stop assist. I purchased at hardware store, and replaced the bolt to secure the end cap, and used loctite. No recurrence after a fair amount of bumpy gravel and single trail riding. Bolt is a Button Head Cap Screw, Metric, M3-.50 x 16. Good Luck!