What I’m trying to say is that the missing width and height in images is not a problem in the WordPress core.
It comes from one of your plugins.
I’ve been building websites with WP for over 15 years and the only time I can remember this happening was when I tried Oxygen Builder – there were missing widths and heights because of Oxygen.
You should find out which plugin is causing this problem in your setup and then contact their support or read something on the internet about this problem in that particular plugin.
But as I said… try it… maybe this plugin will solve your problem… I don’t know, it’s impossible to predict something like that without information about where the actual problem is in your setup.