For hardtailes, full-suspension bikes with vertical and horizontal amortizations near a tube. A low tube of triangle must be straight.
A battery 650 W*h fits for a small frame size (14"-17") , 1000 W*h for a big one (from 17"). You can print
a battery pattern 1000 W*h at a scale of 1:1, and try on your bike. The pattern is matched for a battery 1000 W*h , the size of a battery 570 W*h is less.