Increasing the length of a basefield with data
Issue:
You cannot change the specification of an existing field if it already has content. The reason for this is that the content itself may need to be changed as well.
Solution:
In case you just want to increase the size of a varchar field, here is an example of an update hook. Don't forget to also update the max_length in the baseFieldDefinitions method of your Entity class.