Description
Image blocks with set dimensions break when WordPress is upgraded from 6.0.3 to 6.4.2.
Step-by-step reproduction instructions
- Install WordPress 6.0.3.
- Create a page and add an Image block with an image inside of it.
- Set the width and height of the image in the block's settings.
- Save your changes.
- Upgrade WordPress to version 6.4.2.
- Visit the same URL used to edit the page where you had originally added the image.
- Make any change, such as adding a paragraph beneath the Image block.
- Save your changes and reload the page.
- You'll see a block validation error on the image.
Screenshots, screen recording, code snippet

Environment info
- WordPress Version: 6.0.3 & 6.4.2
- Desktop Environment: Windows 11
- Browser: Google Chrome
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
Description
Image blocks with set dimensions break when WordPress is upgraded from 6.0.3 to 6.4.2.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes