added try except block in `state.py` (#5790)
* added try except block in `state.py`
added try except block in `state.py` which will raise a "ValueError"
* add changeset
* updated `state.py` and added test for deepcopy
updated `state.py` and added test for deepcopy named test_initial_value_deepcopy in `test/test_components.py`
* lint
* test fix
* explain test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>