uSDCard max size

I have got a BananaPi M3 running on a 128GB micro SD Card. Can I use a 256 or even ideally 512 GB ?

Yes, but why? SD cards are very fragile - they are dying faster then anything else.

but where then to store the data? in many places it’s all lost. In best practices for storing different types of data are described