Currently the IDE has a warning when such a thing happens, but it doesn't offer a quick fix for it.
A possible quick fix would be to set both height and width to a value that's 200dp at most, so that the aspect ratio is being preserved.
Please offer it.
I've also requested it here, in case Google will add it:
https://issuetracker.google.com/issues/443206425