Added storage size to localStorage error handling