text: Title: create_or_modify_pyi not working in some environments.
  Body: ### Describe the bug
  
  The latest Conda package (for 5.7 and 5.5) do not seem to include `blocks_events.pyi` anymore.
  This in most cases isn't a major issue because Gradio itself will generate it using `create_or_modify_pyi`.
  
  The problem is that the function can fail in confusing ways in some conditions.
  For example if Gradio is installed system wide (IE: by an admin user) and then started by an unprivileged user, the function will fail as it can't write the `.pyi` file.
  
  In such case the error is also confusing because you get a `FileNotFoundError: [Errno 2] No such file or directory: '.../python3.11/site-packages/gradio/blocks_events.pyi'` error. Which tells you nothing about why the file doesn't exist.
  
  That is because the write operation is wrapped in a context manager suppressing write errors 
  https://github.com/gradio-app/gradio/blob/de42c85661faff84bd02960751b12c4bb722e153/gradio/component_meta.py#L131-L132
  And thus the write will never crash but the subsequent read will
  
  Suggested fixes:
  * Add `blocks_events.pyi` to conda packages so that Gradio doesn't have to generate it at runtime.
  * Remove `with no_raise_exception():` from `create_or_modify_py`. Given that the subsequent `read_text` call in `create_or_modify_pyi` there doesn't seem to be any benefit in using the `with no_raise_exception():` context manager. The function will just crash anyway in the subsequent line of code and will instead emit an uninformative error. If the concern is related to concurrency and race conditions over the file. That can be solved by writing the file to a temporary location and then moving it to its target destination.
  
  ### Have you searched existing issues?  🔎
  
  - [X] I have searched and found no existing issues
  
  ### Reproduction
  
  1. Install Gradio as root
  2. Delete gradio/block_events.pyi
  3. Launch Gradio as another user that can't write to system-packages
  
  
  ### Screenshot
  
  _No response_
  
  ### Logs
  
  _No response_
  
  ### System Info
  
  ```shell
  Gradio 5.7.1 installed via Conda on Python 3.11
  ```
  
  
  ### Severity
  
  I can work around it