According to the issue #1152, upgrading prosemirror-view to 1.19.2 and above could solve the problem.
But my project is not ready to upgrade to new version due to some unpredictable issues by upgrading. Do I have some work around to solve this issue by writing maybe a plugin to add the empty img hack node?
Any suggestion would be helpful.