Flash memory often have limited write-erase cycles.
The datasheet has that figure.
There are mcus out there (modern ones) that have a flash endurance cycle of 100 times (yes, that's 100 times). I thought that was a typo but it wasn't fixed in subsequent versions of the datasheet.