I upgraded my Drupal version to 10.3.2 and met the same issue with entity_embed:
Error: Call to undefined method Drupal\entity_embed\Plugin\EmbedType\Entity::getModulePath() in Drupal\entity_embed\Plugin\EmbedType\Entity->getDefaultIconUrl() (line 243 of modules/contrib/entity_embed/src/Plugin/EmbedType/Entity.php).
I upgraded the version of entity_embed in my composer.json file to version 1.6 (1.7 doesn't exist apparently) but the issue remained,
I had to apply the same patch mentioned in
https://www.drupal.org/project/entity_embed/issues/3272732#comment-15306099
✨
Drupal 10 & CKEditor 5 readiness
Fixed
.
Was entity_embed 1.7 removed? How can we make sure the patch from https://git.drupalcode.org/project/entity_embed/-/commit/ac6f2fe13b18f5f... is included in the entity_embed package?