Thanks for the updated notes!
The size of local storage is actually entirely dependent on your browser, but it seems like it varies from 2MB-10MB. I believe the limit on Chrome is 5MB.
What is your use case for localStorage? Could you use temporary state instead?