in this post, I'll show you how to increase the length of field without losing data in drupal 8.
Question
How to increase the length of field to 255 without losing data.
Solution
use hook_update_N() to chnage the length of field to 255 in database, configuration, and in storage schema. like the example below.
mymodule.install