On WP 5.9.2 the includes/css/dist/block-library/style.min.css has the following CSS declaration:
html :where(img){ height: auto; max-width: 100% }
You can try to use replace with, the the file or use a plugin for custom css.
html :where(img){ height: auto; max-width: fit-content; }
More readings atÂ