fix flakiness during resize (#48556)
* fix flakiness during resize * keep error message
* fix flakiness during resize * keep error message
mentioned in commit e39097d0
mentioned in commit 8f90ae3f
mentioned in commit c70fbc6c
mentioned in commit 8c7e9180
mentioned in commit 464902f8
mentioned in commit 9ead7579
mentioned in commit 1b78a500
mentioned in commit 37d8f805