Fix Show error when user put wrong values in width or height (#26166)
## Bug
- [x] Related issues linked using `fixes #26135 `
- [x] Integration tests added
fixes #26135
## Feature
- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #26135 `
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
## Documentation / Examples
- [ ] Make sure the linting passes