Limit JSX stack trace frames to 10

React now caps the number of stack frames captured when creating fake JSX call sites to 10, improving performance when errors are created. The stack trace limit is properly restored after use to avoid affecting other error handling in the application.