You can't do much more than firstly mitigate the risk for gassing... meaning keeping the batteries above nominal voltage (storage voltage)
as short time as possible (can mean that you don't wait for those 10 days it takes for the auto discharge function the batteries have). And never ever overheat the batteries (neither when they lay around or when flying).
Then secondly... regularly inspect them for swelling & if you notice even the slightest bulging you stop using them.
Also important to know that when a battery heats up a swelling can occur that then goes away when they cools down... so check for the swelling immediately when landed.
If you above all this, know that the battery attachment is sensitive + there is no available space between the drone & battery to take a small swelling during flight (like the
Mavic 2 series) you can use something like below to strap the battery in so it doesn't gets dislodged.
View attachment 173173