WARNING: This page is about a different car, the 2020 Mazda CX-30. However, it is still accessible from the selected car via links, so may be relevant.
Tighten the battery tray installation bolts in the order shown in the illustration.
Fig 1: Battery Tray Bolts Tightening Sequence (SKYACTIV-G, With Cylinder Deactivation And US)